This resource will be created if it doesn't exist yet.
This resource will be created if it doesn't exist yet.
To use 'apply', always create the resource initially with either 'apply' or 'create --save-config'.
To use 'apply', always create the resource initially with either 'apply' or 'create --save-config'.
JSON and YAML formats are accepted.`)
JSON and YAML formats are accepted.
Alpha Disclaimer: the --prune functionality is not yet complete. Do not use unless you are aware of what the current state is. See https://issues.k8s.io/34274.`)
cmd.Flags().Bool("overwrite",true,"Automatically resolve conflicts between the modified and live configuration by using values from the modified configuration")
cmd.Flags().Bool("overwrite",true,"Automatically resolve conflicts between the modified and live configuration by using values from the modified configuration")
cmd.Flags().BoolVar(&options.Prune,"prune",false,"Automatically delete resource objects that do not appear in the configs")
cmd.Flags().BoolVar(&options.Cascade,"cascade",true,"Only relevant during a prune. If true, cascade the deletion of the resources managed by pruned resources (e.g. Pods created by a ReplicationController).")
cmd.Flags().IntVar(&options.GracePeriod,"grace-period",-1,"Period of time in seconds given to pruned resources to terminate gracefully. Ignored if negative.")
cmdutil.AddValidateFlags(cmd)
cmdutil.AddValidateFlags(cmd)
cmd.Flags().StringVarP(&options.Selector,"selector","l","","Selector (label query) to filter on")
cmd.Flags().StringVarP(&options.Selector,"selector","l","","Selector (label query) to filter on")
cmd.Flags().Bool("all",false,"[-all] to select all the specified resources.")
returnfmt.Errorf("all resources selected for prune without explicitly passing --all. To prune all resources, pass the --all flag. If you did not mean to prune all resources, specify a label selector.")