// FakeClient determines if client-gen generates the fake clients.
// FakeClient determines if client-gen generates the fake clients.
FakeClientbool
FakeClientbool
// CmdArgs is the command line arguments supplied when the client-gen is called.
}
CmdArgsstring
vardefaultInput=[]string{
"api/",
"admissionregistration/",
"authentication/",
"authorization/",
"autoscaling/",
"batch/",
"certificates/",
"extensions/",
"rbac/",
"storage/",
"apps/",
"policy/",
"scheduling/",
"settings/",
"networking/",
}
func(ca*CustomArgs)AddFlags(fs*pflag.FlagSet){
pflag.Var(NewGVPackagesValue(&ca.GroupVersionToInputPath,&ca.Groups,defaultInput),"input","group/versions that client-gen will generate clients for. At most one version per group is allowed. Specified in the format \"group1/version1,group2/version2...\".")
pflag.Var(NewGVTypesValue(&ca.IncludedTypesOverrides,[]string{}),"included-types-overrides","list of group/version/type for which client should be generated. By default, client is generated for all types which have genclient 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 will be used for other group versions.")
pflag.StringVar(&ca.InputBasePath,"input-base","k8s.io/kubernetes/pkg/apis","base path to look for the api group.")
pflag.StringVarP(&ca.ClientsetName,"clientset-name","n","internalclientset","the name of the generated clientset package.")
pflag.StringVarP(&ca.ClientsetAPIPath,"clientset-api-path","","","the value of default API path.")
pflag.StringVar(&ca.ClientsetOutputPath,"clientset-path","k8s.io/kubernetes/pkg/client/clientset_generated/","the generated clientset will be output to <clientset-path>/<clientset-name>.")
pflag.BoolVar(&ca.ClientsetOnly,"clientset-only",false,"when set, client-gen only generates the clientset shell, without generating the individual typed clients")
pflag.BoolVar(&ca.FakeClient,"fake-clientset",true,"when set, client-gen will generate the fake clientset that can be used in tests")
},"group/versions that client-gen will generate clients for. At most one version per group is allowed. Specified in the format \"group1/version1,group2/version2...\".")
includedTypesOverrides=pflag.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 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 will be used for other group versions.")
basePath=pflag.String("input-base","k8s.io/kubernetes/pkg/apis","base path to look for the api group.")
clientsetName=pflag.StringP("clientset-name","n","internalclientset","the name of the generated clientset package.")
clientsetAPIPath=pflag.StringP("clientset-api-path","","","the value of default API path.")
clientsetPath=pflag.String("clientset-path","k8s.io/kubernetes/pkg/client/clientset_generated/","the generated clientset will be output to <clientset-path>/<clientset-name>.")
clientsetOnly=pflag.Bool("clientset-only",false,"when set, client-gen only generates the clientset shell, without generating the individual typed clients")
fakeClient=pflag.Bool("fake-clientset",true,"when set, client-gen will generate the fake clientset that can be used in tests")