diff --git a/cmd/clusterctl/cmd/init.go b/cmd/clusterctl/cmd/init.go index 3681905beb3c..9d6eafbdbf9d 100644 --- a/cmd/clusterctl/cmd/init.go +++ b/cmd/clusterctl/cmd/init.go @@ -17,7 +17,6 @@ limitations under the License. package cmd import ( - "fmt" "time" "github.com/spf13/cobra" @@ -35,7 +34,6 @@ type initOptions struct { ipamProviders []string runtimeExtensionProviders []string targetNamespace string - listImages bool validate bool waitProviders bool waitProviderTimeout int @@ -114,10 +112,6 @@ func init() { initCmd.Flags().BoolVar(&initOpts.validate, "validate", true, "If true, clusterctl will validate that the deployments will succeed on the management cluster.") - initCmd.Flags().BoolVar(&initOpts.listImages, "list-images", false, - "Lists the container images required for initializing the management cluster (without actually installing the providers)") - _ = initCmd.Flags().MarkDeprecated("list-images", "use 'clusterctl init list-images' instead.") - initCmd.AddCommand(initListImagesCmd) RootCmd.AddCommand(initCmd) } @@ -143,18 +137,6 @@ func runInit() error { IgnoreValidationErrors: !initOpts.validate, } - if initOpts.listImages { - images, err := c.InitImages(options) - if err != nil { - return err - } - - for _, i := range images { - fmt.Println(i) - } - return nil - } - if _, err := c.Init(options); err != nil { return err } diff --git a/docs/book/src/developer/providers/v1.3-to-v1.4.md b/docs/book/src/developer/providers/v1.3-to-v1.4.md index 90c4262780cb..f4ff350bc7aa 100644 --- a/docs/book/src/developer/providers/v1.3-to-v1.4.md +++ b/docs/book/src/developer/providers/v1.3-to-v1.4.md @@ -23,6 +23,7 @@ maintainers of providers and consumers of our Go API. - `clusterctl backup` has been removed. - `MachineHealthCheckSuccededCondition` condition type has been removed. - `CloneTemplate` and `CloneTemplateInput` has been removed. +- The option `--list-images` from `init` subcommand has been removed. ### API Changes