Merge pull request #129106 from rotsix/patch-1

docs: `-l/--selector` example for set-based requirements
This commit is contained in:
Kubernetes Prow Robot 2024-12-12 06:40:32 +00:00 committed by GitHub
commit d1b702b0b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -519,7 +519,7 @@ func AddChunkSizeFlag(cmd *cobra.Command, value *int64) {
} }
func AddLabelSelectorFlagVar(cmd *cobra.Command, p *string) { func AddLabelSelectorFlagVar(cmd *cobra.Command, p *string) {
cmd.Flags().StringVarP(p, "selector", "l", *p, "Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.") cmd.Flags().StringVarP(p, "selector", "l", *p, "Selector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)). Matching objects must satisfy all of the specified label constraints.")
} }
func AddPruningFlags(cmd *cobra.Command, prune *bool, pruneAllowlist *[]string, all *bool, applySetRef *string) { func AddPruningFlags(cmd *cobra.Command, prune *bool, pruneAllowlist *[]string, all *bool, applySetRef *string) {