mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #128692 from dinhxuanvu/extra-dir
Remove deprecated extra-dirs flag
This commit is contained in:
commit
2012060312
@ -45,11 +45,6 @@ type Args struct {
|
|||||||
// generator pick up manually written conversion funcs from external packages.
|
// generator pick up manually written conversion funcs from external packages.
|
||||||
ExtraPeerDirs []string
|
ExtraPeerDirs []string
|
||||||
|
|
||||||
// Additional dirs to parse and load, but not consider for peers. This is
|
|
||||||
// useful when packages depend on other packages and want to call
|
|
||||||
// conversions across them.
|
|
||||||
ExtraDirs []string
|
|
||||||
|
|
||||||
// SkipUnsafe indicates whether to generate unsafe conversions to improve the efficiency
|
// SkipUnsafe indicates whether to generate unsafe conversions to improve the efficiency
|
||||||
// of these operations. The unsafe operation is a direct pointer assignment via unsafe
|
// of these operations. The unsafe operation is a direct pointer assignment via unsafe
|
||||||
// (within the allowed uses of unsafe) and is equivalent to a proposed Golang change to
|
// (within the allowed uses of unsafe) and is equivalent to a proposed Golang change to
|
||||||
@ -84,8 +79,6 @@ func (args *Args) AddFlags(fs *pflag.FlagSet) {
|
|||||||
"Comma-separated list of apimachinery import paths which are considered, after tag-specified peers, for conversions. Only change these if you have very good reasons.")
|
"Comma-separated list of apimachinery import paths which are considered, after tag-specified peers, for conversions. Only change these if you have very good reasons.")
|
||||||
fs.StringSliceVar(&args.ExtraPeerDirs, "extra-peer-dirs", args.ExtraPeerDirs,
|
fs.StringSliceVar(&args.ExtraPeerDirs, "extra-peer-dirs", args.ExtraPeerDirs,
|
||||||
"Application specific comma-separated list of import paths which are considered, after tag-specified peers and base-peer-dirs, for conversions.")
|
"Application specific comma-separated list of import paths which are considered, after tag-specified peers and base-peer-dirs, for conversions.")
|
||||||
fs.StringSliceVar(&args.ExtraDirs, "extra-dirs", args.ExtraDirs,
|
|
||||||
"Application specific comma-separated list of import paths which are loaded and considered for callable conversions, but are not considered peers for conversion.")
|
|
||||||
fs.BoolVar(&args.SkipUnsafe, "skip-unsafe", args.SkipUnsafe,
|
fs.BoolVar(&args.SkipUnsafe, "skip-unsafe", args.SkipUnsafe,
|
||||||
"If true, will not generate code using unsafe pointer conversions; resulting code may be slower.")
|
"If true, will not generate code using unsafe pointer conversions; resulting code may be slower.")
|
||||||
fs.StringVar(&args.GoHeaderFile, "go-header-file", "",
|
fs.StringVar(&args.GoHeaderFile, "go-header-file", "",
|
||||||
|
Loading…
Reference in New Issue
Block a user