includedTypesOverrides=flag.StringSlice("included-types-overrides",[]string{},"list of group/version/type for which client should be generated. By default, client is generated for all types which have genclient=true in types.go. This overrides that. For each groupVersion in this list, only the types mentioned here will be included. The default check of genclient=true will be used for other group versions.")
includedTypesOverrides=flag.StringSlice("included-types-overrides",[]string{},"list of group/version/type for which client should be generated. By default, client is generated for all types which have genclient=true in types.go. This overrides that. For each groupVersion in this list, only the types mentioned here will be included. The default check of genclient=true will be used for other group versions.")
basePath=flag.String("input-base","k8s.io/kubernetes/pkg/apis","base path to look for the api group. Default to \"k8s.io/kubernetes/pkg/apis\"")
basePath=flag.String("input-base","k8s.io/kubernetes/pkg/apis","base path to look for the api group. Default to \"k8s.io/kubernetes/pkg/apis\"")
clientsetName=flag.StringP("clientset-name","n","internalclientset","the name of the generated clientset package.")
clientsetName=flag.StringP("clientset-name","n","internalclientset","the name of the generated clientset package.")
clientsetAPIPath=flag.StringP("clientset-api-path","","","the value of default API path.")
clientsetPath=flag.String("clientset-path","k8s.io/kubernetes/pkg/client/clientset_generated/","the generated clientset will be output to <clientset-path>/<clientset-name>. Default to \"k8s.io/kubernetes/pkg/client/clientset_generated/\"")
clientsetPath=flag.String("clientset-path","k8s.io/kubernetes/pkg/client/clientset_generated/","the generated clientset will be output to <clientset-path>/<clientset-name>. Default to \"k8s.io/kubernetes/pkg/client/clientset_generated/\"")
clientsetOnly=flag.Bool("clientset-only",false,"when set, client-gen only generates the clientset shell, without generating the individual typed clients")
clientsetOnly=flag.Bool("clientset-only",false,"when set, client-gen only generates the clientset shell, without generating the individual typed clients")
fakeClient=flag.Bool("fake-clientset",true,"when set, client-gen will generate the fake clientset that can be used in tests")
fakeClient=flag.Bool("fake-clientset",true,"when set, client-gen will generate the fake clientset that can be used in tests")
...
@@ -177,13 +178,14 @@ func main() {
...
@@ -177,13 +178,14 @@ func main() {
iferr!=nil{
iferr!=nil{
glog.Fatalf("Unexpected error: %v",err)
glog.Fatalf("Unexpected error: %v",err)
}
}
glog.Infof("going to generate clientset from these input paths: %v",inputPath)
glog.V(3).Infof("going to generate clientset from these input paths: %v",inputPath)