Merge pull request #60717 from liggitt/field-selector

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add field selector support to delete, label, annotate

**What this PR does / why we need it**:

Builds out field selector support for more bulk commands

**Release note**:
```release-note
kubectl now supports --field-selector for `delete`, `label`, and `annotate`
```
This commit is contained in:
Kubernetes Submit Queue
2018-05-01 11:20:24 -07:00
committed by GitHub
5 changed files with 38 additions and 10 deletions

View File

@@ -52,8 +52,6 @@ func fakecmd() *cobra.Command {
cmdutil.CheckErr(cmdutil.ValidateOutputArgs(cmd))
},
}
cmd.Flags().StringP("selector", "l", "", "Selector (label query) to filter on, not including uninitialized ones.")
return cmd
}