Skip to content

Commit

Permalink
Merge pull request #17868 from juanvallejo/jvallejo/pick-17616-pod-se…
Browse files Browse the repository at this point in the history
…lector

Automatic merge from submit-queue.

Pick 17616: Add --selector, --pod-selector flags `oc adm drain`

UPSTREAM kubernetes/kubernetes#56864
Pick of #17616
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1525340

cc @mfojtik @deads2k @soltysh
  • Loading branch information
openshift-merge-robot authored Jan 8, 2018
2 parents 63be508 + 67ed27a commit 91f500a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 51 deletions.
2 changes: 2 additions & 0 deletions contrib/completions/bash/oc
Original file line number Diff line number Diff line change
Expand Up @@ -2447,6 +2447,8 @@ _oc_adm_drain()
local_nonpersistent_flags+=("--grace-period=")
flags+=("--ignore-daemonsets")
local_nonpersistent_flags+=("--ignore-daemonsets")
flags+=("--pod-selector=")
local_nonpersistent_flags+=("--pod-selector=")
flags+=("--timeout=")
local_nonpersistent_flags+=("--timeout=")
flags+=("--as=")
Expand Down
2 changes: 2 additions & 0 deletions contrib/completions/zsh/oc
Original file line number Diff line number Diff line change
Expand Up @@ -2589,6 +2589,8 @@ _oc_adm_drain()
local_nonpersistent_flags+=("--grace-period=")
flags+=("--ignore-daemonsets")
local_nonpersistent_flags+=("--ignore-daemonsets")
flags+=("--pod-selector=")
local_nonpersistent_flags+=("--pod-selector=")
flags+=("--timeout=")
local_nonpersistent_flags+=("--timeout=")
flags+=("--as=")
Expand Down
81 changes: 30 additions & 51 deletions vendor/k8s.io/kubernetes/pkg/kubectl/cmd/drain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 91f500a

Please sign in to comment.