cmd.Flags().BoolVar(&options.OpenApiPatch,"openapi-patch",options.OpenApiPatch,"If true, use openapi to calculate diff when the openapi presents and the resource can be found in the openapi spec. Otherwise, fall back to use baked-in types.")
cmd.Flags().BoolVar(&options.OpenApiPatch,"openapi-patch",options.OpenApiPatch,"If true, use openapi to calculate diff when the openapi presents and the resource can be found in the openapi spec. Otherwise, fall back to use baked-in types.")
"Only relevant if --edit=true. Defaults to the line ending native to your platform.")
"Only relevant if --edit=true. Defaults to the line ending native to your platform.")
cmdutil.AddApplyAnnotationFlags(cmd)
cmdutil.AddApplyAnnotationFlags(cmd)
cmdutil.AddDryRunFlag(cmd)
cmdutil.AddDryRunFlag(cmd)
cmdutil.AddInclude3rdPartyFlags(cmd)
cmd.Flags().StringVarP(&o.Selector,"selector","l",o.Selector,"Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)")
cmd.Flags().StringVarP(&o.Selector,"selector","l",o.Selector,"Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)")
cmd.Flags().StringVar(&o.Raw,"raw",o.Raw,"Raw URI to POST to the server. Uses the transport specified by the kubeconfig file.")
cmd.Flags().StringVar(&o.Raw,"raw",o.Raw,"Raw URI to POST to the server. Uses the transport specified by the kubeconfig file.")
cmd.Flags().Bool("append-hash",false,"Append a hash of the secret to its name.")
cmd.Flags().Bool("append-hash",false,"Append a hash of the secret to its name.")
cmd.Flags().StringSlice("from-file",[]string{},"Key files can be specified using their file path, in which case a default name will be given to them, or optionally with a name and file path, in which case the given name will be used. Specifying a directory will iterate each named file in the directory that is a valid secret key.")
cmd.Flags().StringSlice("from-file",[]string{},"Key files can be specified using their file path, in which case a default name will be given to them, or optionally with a name and file path, in which case the given name will be used. Specifying a directory will iterate each named file in the directory that is a valid secret key.")
cmd.Flags().StringVarP(f.Output,"output","o",*f.Output,"Output mode. Use \"-o name\" for shorter output (resource/name).")
cmd.Flags().StringVarP(f.Output,"output","o",*f.Output,"Output mode. Use \"-o name\" for shorter output (resource/name).")
}
}
// TODO: this is deprecated. Remove.
iff.IncludeThirdParty!=nil{
cmd.Flags().BoolVar(f.IncludeThirdParty,"include-extended-apis",*f.IncludeThirdParty,"If true, include definitions of new APIs via calls to the API server. [default true]")
cmd.Flags().StringP("selector","l","","Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)")
cmd.Flags().StringP("selector","l","","Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)")
cmd.Flags().Bool("all-namespaces",false,"If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.")
cmd.Flags().Bool("all-namespaces",false,"If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.")
cmd.Flags().BoolVar(&describerSettings.ShowEvents,"show-events",describerSettings.ShowEvents,"If true, display events related to the described object.")
cmd.Flags().BoolVar(&describerSettings.ShowEvents,"show-events",describerSettings.ShowEvents,"If true, display events related to the described object.")
cmd.Flags().StringSliceVarP(&options.LabelColumns,"label-columns","L",options.LabelColumns,"Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag options like -L label1 -L label2...")
cmd.Flags().StringSliceVarP(&options.LabelColumns,"label-columns","L",options.LabelColumns,"Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag options like -L label1 -L label2...")
cmd.Flags().BoolVar(&options.Export,"export",options.Export,"If true, use 'export' for the resources. Exported resources are stripped of cluster-specific information.")
cmd.Flags().BoolVar(&options.Export,"export",options.Export,"If true, use 'export' for the resources. Exported resources are stripped of cluster-specific information.")
cmdutil.AddFilenameOptionFlags(cmd,&options.FilenameOptions,"identifying the resource to get from a server.")
cmdutil.AddFilenameOptionFlags(cmd,&options.FilenameOptions,"identifying the resource to get from a server.")
cmd.Flags().Bool("record",false,"Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.")
cmd.Flags().Bool("record",false,"Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.")
cmd.Flags().Duration("timeout",0,"The length of time to wait before giving up on a scale operation, zero means don't wait. Any other values should contain a corresponding time unit (e.g. 1s, 2m, 3h).")
cmd.Flags().Duration("timeout",0,"The length of time to wait before giving up on a scale operation, zero means don't wait. Any other values should contain a corresponding time unit (e.g. 1s, 2m, 3h).")
cmdutil.AddOutputFlagsForMutation(cmd)
cmdutil.AddOutputFlagsForMutation(cmd)
cmdutil.AddRecordFlag(cmd)
cmdutil.AddRecordFlag(cmd)
cmdutil.AddInclude3rdPartyFlags(cmd)
usage:="identifying the resource to set a new size"
usage:="identifying the resource to set a new size"
cmd.Flags().StringVarP(&options.selector,"selector","l",options.selector,"Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)")
cmd.Flags().StringVarP(&options.selector,"selector","l",options.selector,"Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)")
cmd.Flags().BoolVar(&options.overwrite,"overwrite",options.overwrite,"If true, allow taints to be overwritten, otherwise reject taint updates that overwrite existing taints.")
cmd.Flags().BoolVar(&options.overwrite,"overwrite",options.overwrite,"If true, allow taints to be overwritten, otherwise reject taint updates that overwrite existing taints.")
cmd.Flags().BoolVar(&options.all,"all",options.all,"Select all nodes in the cluster")
cmd.Flags().BoolVar(&options.all,"all",options.all,"Select all nodes in the cluster")
cmd.Flags().BoolVar(include3rdParty,"include-extended-apis",*include3rdParty,"If true, include definitions of new APIs via calls to the API server. [default true]")