rename selector to labelSelector

This commit is contained in:
Di Xu
2017-08-04 14:54:17 +08:00
parent 210626577b
commit 057b7bf767
21 changed files with 58 additions and 56 deletions

View File

@@ -243,7 +243,7 @@ func (o *DrainOptions) SetupDrain(cmd *cobra.Command, args []string) error {
Flatten()
if len(o.Selector) > 0 {
builder = builder.SelectorParam(o.Selector).
builder = builder.LabelSelectorParam(o.Selector).
ResourceTypes("nodes")
}