Skip to content

Commit 75633d0

Browse files
authored
Merge pull request kubernetes#130506 from jpbetz/document-client-gen-ordering
Clarify ordering requirements of client-gen --input
2 parents eddb6a7 + df9d5f0 commit 75633d0

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/code-generator/cmd/client-gen/args

1 file changed

+1
-1
lines changed

staging/src/k8s.io/code-generator/cmd/client-gen/args/args.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (args *Args) AddFlags(fs *pflag.FlagSet, inputBase string) {
8585
fs.StringVar(&args.GoHeaderFile, "go-header-file", "",
8686
"the path to a file containing boilerplate header text; the string \"YEAR\" will be replaced with the current 4-digit year")
8787
fs.Var(NewGVPackagesValue(gvsBuilder, nil), "input",
88-
"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...\".")
88+
`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...". The order in which group/versions are listed defines the order of the generated client code. To avoid non-deterministic output, sort this list before providing it to client-gen.`)
8989
fs.Var(NewGVTypesValue(&args.IncludedTypesOverrides, []string{}), "included-types-overrides",
9090
"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.")
9191
fs.Var(NewInputBasePathValue(gvsBuilder, inputBase), "input-base",

0 commit comments

Comments
 (0)