Merge pull request #108792 from wongearl/modify-todo

fix CustomArgs annotation, todo describe
This commit is contained in:
Kubernetes Prow Robot 2022-07-11 00:21:50 -07:00 committed by GitHub
commit be53d94595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ import (
codegenutil "k8s.io/code-generator/pkg/util"
)
// ClientGenArgs is a wrapper for arguments to applyconfiguration-gen.
// CustomArgs is a wrapper for arguments to applyconfiguration-gen.
type CustomArgs struct {
// ExternalApplyConfigurations provides the locations of externally generated
// apply configuration types for types referenced by the go structs provided as input.

View File

@ -33,7 +33,7 @@ func main() {
genericArgs, customArgs := generatorargs.NewDefaults()
genericArgs.GoHeaderFilePath = util.BoilerplatePath()
genericArgs.AddFlags(pflag.CommandLine)
customArgs.AddFlags(pflag.CommandLine, "k8s.io/kubernetes/pkg/apis") // TODO: move this input path out of client-gen
customArgs.AddFlags(pflag.CommandLine, "k8s.io/kubernetes/pkg/apis") // TODO: move this input path out of applyconfiguration-gen
if err := flag.Set("logtostderr", "true"); err != nil {
klog.Fatalf("Error: %v", err)
}

View File

@ -29,7 +29,7 @@ import (
var DefaultInputDirs = []string{}
// ClientGenArgs is a wrapper for arguments to client-gen.
// CustomArgs is a wrapper for arguments to client-gen.
type CustomArgs struct {
// A sorted list of group versions to generate. For each of them the package path is found
// in GroupVersionToInputPath.