Skip to content

Commit

Permalink
deprecate config cluster and provider subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
shysank committed May 20, 2021
1 parent 72d1a4c commit b535ff1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/clusterctl/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (

var configCmd = &cobra.Command{
Use: "config",
Short: "Display provider configuration and templates to create workload clusters.",
Long: `Display provider configuration and templates to create workload clusters.`,
Short: "Display clusterctl configuration.",
Long: `Display clusterctl configuration.`,
}

func init() {
Expand Down
6 changes: 6 additions & 0 deletions cmd/clusterctl/cmd/config_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ import (
"sigs.k8s.io/cluster-api/cmd/clusterctl/client"
)

/*
NOTE: This command is deprecated in favor of `clusterctl generate cluster`. The source code is located at `cmd/clusterctl/cmd/generate_cluster.go`.
This file will be removed in 0.5.x. Do not make any changes to this file.
*/

type configClusterOptions struct {
kubeconfig string
kubeconfigContext string
Expand Down Expand Up @@ -90,6 +95,7 @@ var configClusterClusterCmd = &cobra.Command{
RunE: func(cmd *cobra.Command, args []string) error {
return runGetClusterTemplate(cmd, args[0])
},
Deprecated: "use `clusterctl generate cluster` instead",
}

func init() {
Expand Down
6 changes: 6 additions & 0 deletions cmd/clusterctl/cmd/config_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ import (
"sigs.k8s.io/cluster-api/cmd/clusterctl/client"
)

/*
NOTE: This command is deprecated in favor of `clusterctl generate provider`. The source code is located at `cmd/clusterctl/cmd/generate_provider.go`.
This file will be removed in 0.5.x. Do not make any changes to this file.
*/

const (
// ComponentsOutputYaml is an option used to print the components in yaml format.
ComponentsOutputYaml = "yaml"
Expand Down Expand Up @@ -79,6 +84,7 @@ var configProviderCmd = &cobra.Command{
RunE: func(cmd *cobra.Command, args []string) error {
return runGetComponents()
},
Deprecated: "use `clusterctl generate provider` instead",
}

func init() {
Expand Down

0 comments on commit b535ff1

Please sign in to comment.