@@ -56,15 +56,16 @@ kubebuilder init repo --domain mydomain
5656 },
5757 }
5858
59+ v0comment := "Works only with project-version v0, "
5960 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 " )
6465
6566
6667 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." )
6869 o .depFlag = initCmd .Flag ("dep" )
6970
7071 o .prj = projectForFlags (initCmd .Flags ())
0 commit comments