@@ -17,7 +17,6 @@ limitations under the License.
17
17
package cmd
18
18
19
19
import (
20
- "fmt"
21
20
"time"
22
21
23
22
"github.com/spf13/cobra"
@@ -35,7 +34,6 @@ type initOptions struct {
35
34
ipamProviders []string
36
35
runtimeExtensionProviders []string
37
36
targetNamespace string
38
- listImages bool
39
37
validate bool
40
38
waitProviders bool
41
39
waitProviderTimeout int
@@ -114,10 +112,6 @@ func init() {
114
112
initCmd .Flags ().BoolVar (& initOpts .validate , "validate" , true ,
115
113
"If true, clusterctl will validate that the deployments will succeed on the management cluster." )
116
114
117
- initCmd .Flags ().BoolVar (& initOpts .listImages , "list-images" , false ,
118
- "Lists the container images required for initializing the management cluster (without actually installing the providers)" )
119
- _ = initCmd .Flags ().MarkDeprecated ("list-images" , "use 'clusterctl init list-images' instead." )
120
-
121
115
initCmd .AddCommand (initListImagesCmd )
122
116
RootCmd .AddCommand (initCmd )
123
117
}
@@ -143,18 +137,6 @@ func runInit() error {
143
137
IgnoreValidationErrors : ! initOpts .validate ,
144
138
}
145
139
146
- if initOpts .listImages {
147
- images , err := c .InitImages (options )
148
- if err != nil {
149
- return err
150
- }
151
-
152
- for _ , i := range images {
153
- fmt .Println (i )
154
- }
155
- return nil
156
- }
157
-
158
140
if _ , err := c .Init (options ); err != nil {
159
141
return err
160
142
}
0 commit comments