@@ -57,14 +57,14 @@ kubebuilder create config --crds --output myextensionname.yaml
57
57
fmt .Printf ("Must either specify the name of the extension with --name or set --crds.\n " )
58
58
return
59
59
}
60
- CodeGenerator {SkipMap : skipmap }.Execute ()
60
+ CodeGenerator {SkipMapValidation : skipMapValidation }.Execute ()
61
61
log .Printf ("Config written to %s" , output )
62
62
},
63
63
}
64
64
65
65
var (
66
66
controllerType , controllerImage , name , output , crdNamespace string
67
- crds , skipmap bool
67
+ crds , skipMapValidation bool
68
68
)
69
69
70
70
func AddCreateConfig (cmd * cobra.Command ) {
@@ -75,5 +75,5 @@ func AddCreateConfig(cmd *cobra.Command) {
75
75
configCmd .Flags ().StringVar (& controllerImage , "controller-image" , "" , "name of the controller container to run." )
76
76
configCmd .Flags ().StringVar (& name , "name" , "" , "name of the installation. used to generate the namespace and resource names." )
77
77
configCmd .Flags ().StringVar (& output , "output" , filepath .Join ("hack" , "install.yaml" ), "location to write yaml to" )
78
- configCmd .Flags ().BoolVar (& skipmap , "skip-map" , true , "if set to true, skip validation of map in CRD" )
78
+ configCmd .Flags ().BoolVar (& skipMapValidation , "skip-map-validation " , true , "if set to true, skip generating validation schema for map type in CRD. " )
79
79
}
0 commit comments