cmd.Flags().BoolVar(&options.overwrite,"overwrite",false,"If true, allow annotations to be overwritten, otherwise reject annotation updates that overwrite existing annotations.")
cmd.Flags().BoolVar(&options.overwrite,"overwrite",false,"If true, allow annotations to be overwritten, otherwise reject annotation updates that overwrite existing annotations.")
cmd.Flags().BoolVar(&options.all,"all",false,"select all resources in the namespace of the specified resource types")
cmd.Flags().BoolVar(&options.all,"all",false,"select all resources in the namespace of the specified resource types")
cmd.Flags().StringVar(&options.resourceVersion,"resource-version","","If non-empty, the annotation update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.")
cmd.Flags().StringVar(&options.resourceVersion,"resource-version","","If non-empty, the annotation update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.")
usage:="Filename, directory, or URL to a file identifying the resource to update the annotation"
usage:="identifying the resource to update the annotation"
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().Int("cpu-percent",-1,fmt.Sprintf("The target average CPU utilization (represented as a percent of requested CPU) over all the pods. If it's not specified or negative, a default autoscaling policy will be used."))
cmd.Flags().Int("cpu-percent",-1,fmt.Sprintf("The target average CPU utilization (represented as a percent of requested CPU) over all the pods. If it's not specified or negative, a default autoscaling policy will be used."))
cmd.Flags().String("name","","The name for the newly created object. If not specified, the name of the input resource will be used.")
cmd.Flags().String("name","","The name for the newly created object. If not specified, the name of the input resource will be used.")
cmdutil.AddDryRunFlag(cmd)
cmdutil.AddDryRunFlag(cmd)
usage:="Filename, directory, or URL to a file identifying the resource to autoscale."
cmd.Flags().StringP("selector","l","","Selector (label query) to filter on")
cmd.Flags().StringP("selector","l","","Selector (label query) to filter on")
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",true,"If true, display events related to the described object.")
cmd.Flags().BoolVar(&describerSettings.ShowEvents,"show-events",true,"If true, display events related to the described object.")
cmd.Flags().String("session-affinity","","If non-empty, set the session affinity for the service to this; legal values: 'None', 'ClientIP'")
cmd.Flags().String("session-affinity","","If non-empty, set the session affinity for the service to this; legal values: 'None', 'ClientIP'")
cmd.Flags().String("cluster-ip","","ClusterIP to be assigned to the service. Leave empty to auto-allocate, or set to 'None' to create a headless service.")
cmd.Flags().String("cluster-ip","","ClusterIP to be assigned to the service. Leave empty to auto-allocate, or set to 'None' to create a headless service.")
usage:="Filename, directory, or URL to a file identifying the resource to expose a service"
usage:="identifying the resource to expose a service"
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().StringSliceP("label-columns","L",[]string{},"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().StringSliceP("label-columns","L",[]string{},"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().Bool("export",false,"If true, use 'export' for the resources. Exported resources are stripped of cluster-specific information.")
cmd.Flags().Bool("export",false,"If true, use 'export' for the resources. Exported resources are stripped of cluster-specific information.")
usage:="Filename, directory, or URL to a file identifying the resource to get from a server."
usage:="identifying the resource to get from a server."
cmd.Flags().StringP("selector","l","","Selector (label query) to filter on")
cmd.Flags().StringP("selector","l","","Selector (label query) to filter on")
cmd.Flags().Bool("all",false,"select all resources in the namespace of the specified resource types")
cmd.Flags().Bool("all",false,"select all resources in the namespace of the specified resource types")
cmd.Flags().String("resource-version","","If non-empty, the labels update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.")
cmd.Flags().String("resource-version","","If non-empty, the labels update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.")
usage:="Filename, directory, or URL to a file identifying the resource to update the labels"
usage:="identifying the resource to update the labels"
cmd.Flags().Bool("force",false,"Delete and re-create the specified resource")
cmd.Flags().Bool("force",false,"Delete and re-create the specified resource")
cmd.Flags().Bool("cascade",false,"Only relevant during a force replace. If true, cascade the deletion of the resources managed by this resource (e.g. Pods created by a ReplicationController).")
cmd.Flags().Bool("cascade",false,"Only relevant during a force replace. If true, cascade the deletion of the resources managed by this resource (e.g. Pods created by a ReplicationController).")
cmd.Flags().Int("grace-period",-1,"Only relevant during a force replace. Period of time in seconds given to the old resource to terminate gracefully. Ignored if negative.")
cmd.Flags().Int("grace-period",-1,"Only relevant during a force replace. Period of time in seconds given to the old resource to terminate gracefully. Ignored if negative.")
cmd.Flags().Duration("timeout",0,"Only relevant during a force replace. The length of time to wait before giving up on a delete of the old resource, zero means determine a timeout from the size of the object. Any other values should contain a corresponding time unit (e.g. 1s, 2m, 3h).")
cmd.Flags().Duration("timeout",0,"Only relevant during a force replace. The length of time to wait before giving up on a delete of the old resource, zero means determine a timeout from the size of the object. Any other values should contain a corresponding time unit (e.g. 1s, 2m, 3h).")
cmd.Flags().BoolVarP(value,"recursive","R",*value,"Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.")
kubectl.AddJsonFilenameFlag(cmd,&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.")
}
}
// AddDryRunFlag adds dry-run flag to a command. Usually used by mutations.
// AddDryRunFlag adds dry-run flag to a command. Usually used by mutations.