mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #108792 from wongearl/modify-todo
fix CustomArgs annotation, todo describe
This commit is contained in:
commit
be53d94595
@ -27,7 +27,7 @@ import (
|
|||||||
codegenutil "k8s.io/code-generator/pkg/util"
|
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 {
|
type CustomArgs struct {
|
||||||
// ExternalApplyConfigurations provides the locations of externally generated
|
// ExternalApplyConfigurations provides the locations of externally generated
|
||||||
// apply configuration types for types referenced by the go structs provided as input.
|
// apply configuration types for types referenced by the go structs provided as input.
|
||||||
|
@ -33,7 +33,7 @@ func main() {
|
|||||||
genericArgs, customArgs := generatorargs.NewDefaults()
|
genericArgs, customArgs := generatorargs.NewDefaults()
|
||||||
genericArgs.GoHeaderFilePath = util.BoilerplatePath()
|
genericArgs.GoHeaderFilePath = util.BoilerplatePath()
|
||||||
genericArgs.AddFlags(pflag.CommandLine)
|
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 {
|
if err := flag.Set("logtostderr", "true"); err != nil {
|
||||||
klog.Fatalf("Error: %v", err)
|
klog.Fatalf("Error: %v", err)
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
|
|
||||||
var DefaultInputDirs = []string{}
|
var DefaultInputDirs = []string{}
|
||||||
|
|
||||||
// ClientGenArgs is a wrapper for arguments to client-gen.
|
// CustomArgs is a wrapper for arguments to client-gen.
|
||||||
type CustomArgs struct {
|
type CustomArgs struct {
|
||||||
// A sorted list of group versions to generate. For each of them the package path is found
|
// A sorted list of group versions to generate. For each of them the package path is found
|
||||||
// in GroupVersionToInputPath.
|
// in GroupVersionToInputPath.
|
||||||
|
Loading…
Reference in New Issue
Block a user