mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
enable kustomization in kubectl commands
This commit is contained in:
parent
d349998abe
commit
0ce8427b46
@ -90,6 +90,7 @@ func (f *DeleteFlags) ToOptions(dynamicClient dynamic.Interface, streams generic
|
||||
options.WaitForDeletion = *f.Wait
|
||||
}
|
||||
|
||||
options.FilenameOptions.EnableKustomization = true
|
||||
return options
|
||||
}
|
||||
|
||||
|
@ -385,6 +385,7 @@ func AddValidateOptionFlags(cmd *cobra.Command, options *ValidateOptions) {
|
||||
func AddFilenameOptionFlags(cmd *cobra.Command, options *resource.FilenameOptions, usage string) {
|
||||
AddJsonFilenameFlag(cmd.Flags(), &options.Filenames, "Filename, directory, or URL to files "+usage)
|
||||
cmd.Flags().BoolVarP(&options.Recursive, "recursive", "R", options.Recursive, "Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.")
|
||||
options.EnableKustomization = true
|
||||
}
|
||||
|
||||
func AddJsonFilenameFlag(flags *pflag.FlagSet, value *[]string, usage string) {
|
||||
|
Loading…
Reference in New Issue
Block a user