cmd.Flags().String("generator","service/v2",i18n.T("The name of the API generator to use. There are 2 generators: 'service/v1' and 'service/v2'. The only difference between them is that service port in v1 is named 'default', while it is left unnamed in v2. Default is 'service/v2'."))
cmd.Flags().String("generator","service/v2",i18n.T("The name of the API generator to use. There are 2 generators: 'service/v1' and 'service/v2'. The only difference between them is that service port in v1 is named 'default', while it is left unnamed in v2. Default is 'service/v2'."))
cmd.Flags().String("protocol","",i18n.T("The network protocol for the service to be created. Default is 'TCP'."))
cmd.Flags().String("protocol","",i18n.T("The network protocol for the service to be created. Default is 'TCP'."))
cmd.Flags().String("cluster-ip","",i18n.T("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","",i18n.T("ClusterIP to be assigned to the service. Leave empty to auto-allocate, or set to 'None' to create a headless service."))
usage:="identifying the resource to expose a service"
usage:="identifying the resource to expose a service"
cmd.Flags().BoolVar(&options.overwrite,"overwrite",options.overwrite,"If true, allow labels to be overwritten, otherwise reject label updates that overwrite existing labels.")
cmd.Flags().BoolVar(&o.overwrite,"overwrite",o.overwrite,"If true, allow labels to be overwritten, otherwise reject label updates that overwrite existing labels.")
cmd.Flags().BoolVar(&options.list,"list",options.list,"If true, display the labels for a given resource.")
cmd.Flags().BoolVar(&o.list,"list",o.list,"If true, display the labels for a given resource.")
cmd.Flags().BoolVar(&options.local,"local",options.local,"If true, label will NOT contact api-server but run locally.")
cmd.Flags().BoolVar(&o.local,"local",o.local,"If true, label will NOT contact api-server but run locally.")
cmd.Flags().StringVarP(&options.selector,"selector","l",options.selector,"Selector (label query) to filter on, not including uninitialized ones, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2).")
cmd.Flags().StringVarP(&o.selector,"selector","l",o.selector,"Selector (label query) to filter on, not including uninitialized ones, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2).")
cmd.Flags().BoolVar(&options.all,"all",options.all,"Select all resources, including uninitialized ones, in the namespace of the specified resource types")
cmd.Flags().BoolVar(&o.all,"all",o.all,"Select all resources, including uninitialized ones, in the namespace of the specified resource types")
cmd.Flags().StringVar(&options.resourceVersion,"resource-version",options.resourceVersion,i18n.T("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().StringVar(&o.resourceVersion,"resource-version",o.resourceVersion,i18n.T("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:="identifying the resource to update the labels"
usage:="identifying the resource to update the labels"
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",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","",i18n.T("Precondition for resource version. Requires that the current resource version match this value in order to scale."))
cmd.Flags().String("resource-version","",i18n.T("Precondition for resource version. Requires that the current resource version match this value in order to scale."))
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)
usage:="identifying the resource to set a new size"
usage:="identifying the resource to set a new size"
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.")
}
funcGetRecordFlag(cmd*cobra.Command)bool{
returnGetFlagBool(cmd,"record")
}
funcGetDryRunFlag(cmd*cobra.Command)bool{
funcGetDryRunFlag(cmd*cobra.Command)bool{
returnGetFlagBool(cmd,"dry-run")
returnGetFlagBool(cmd,"dry-run")
}
}
// RecordChangeCause annotate change-cause to input runtime object.