remove the opt out choice of kustomize

This commit is contained in:
Jingfang Liu
2018-12-17 14:52:07 -08:00
parent 0ce8427b46
commit ac209ccdc0
5 changed files with 9 additions and 13 deletions

View File

@@ -90,7 +90,6 @@ func (f *DeleteFlags) ToOptions(dynamicClient dynamic.Interface, streams generic
options.WaitForDeletion = *f.Wait
}
options.FilenameOptions.EnableKustomization = true
return options
}

View File

@@ -385,7 +385,6 @@ 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) {