fix CustomArgs annotation, todo describe

This commit is contained in:
wongearl 2022-03-18 16:35:33 +08:00
parent 0ade4678a7
commit c91b1db71d
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.