@@ -56,15 +56,16 @@ kubebuilder init repo --domain mydomain
56
56
},
57
57
}
58
58
59
+ v0comment := "Works only with project-version v0, "
59
60
initCmd .Flags ().StringVar (& o .domain , "domain" , "" , "domain for the API groups" )
60
- initCmd .Flags ().StringVar (& o .copyright , "copyright" , filepath .Join ("hack" , "boilerplate.go.txt" ), "Location of copyright boilerplate file." )
61
- initCmd .Flags ().BoolVar (& o .bazel , "bazel" , false , "if true, setup Bazel workspace artifacts" )
62
- initCmd .Flags ().BoolVar (& o .controllerOnly , "controller-only" , false , "if true, setup controller only" )
63
- initCmd .Flags ().StringVar (& o .projectVersion , "project-version" , "v0 " , "if set to v1 , init project with kubebuilder 1.0 " )
61
+ initCmd .Flags ().StringVar (& o .copyright , "copyright" , filepath .Join ("hack" , "boilerplate.go.txt" ), v0comment + "Location of copyright boilerplate file." )
62
+ initCmd .Flags ().BoolVar (& o .bazel , "bazel" , false , v0comment + "if true, setup Bazel workspace artifacts" )
63
+ initCmd .Flags ().BoolVar (& o .controllerOnly , "controller-only" , false , v0comment + "if true, setup controller only" )
64
+ initCmd .Flags ().StringVar (& o .projectVersion , "project-version" , "v1 " , "if set to v0 , init project with kubebuilder legacy version " )
64
65
65
66
66
67
initCmd .Flags ().BoolVar (
67
- & o .dep , "dep" , true , v1comment + "if specified, determines whether dep will be used." )
68
+ & o .dep , "dep" , true ,"if specified, determines whether dep will be used." )
68
69
o .depFlag = initCmd .Flag ("dep" )
69
70
70
71
o .prj = projectForFlags (initCmd .Flags ())
0 commit comments