Support eviction and statefulset in kubectl drain#35483
Conversation
|
I will add some tests after someone confirms the work flow is correct. |
1643721 to
68e6d92
Compare
|
@soltysh the eviction client we were talking about |
3070c82 to
b409e59
Compare
|
@foxish this is kinda a show stopper. Can we bump to a p0? |
|
@ymqytw this is in on of the builds I1024 19:40:17.565] FAILED hack/make-rules/../../hack/verify-bazel.sh for the verification tests. Please review the unit tests and verifications tests. The e2e's can be pissy, but usually these are spot on. |
|
@k8s-bot gci gce e2e test this |
|
@chrislovecnm will review this later today. |
|
@foxish thanks!! |
|
@chrislovecnm The unit tests and verify test have not been fixed, I will fix them next week. |
|
@kubernetes/sig-cluster-lifecycle @erictune How critical is this given we are taking taking PetSets out of beta? |
|
@pwittrock why @kubernetes/sig-cluster-lifecycle ? AFAIK, nothing in lifecycle is actively gated by petset. |
|
@mikedanese I thought the capability to drain nodes for maintenance / removal from the cluster would be something sig-cluster-lifecycle would have a stake in. Is this incorrect? |
|
Yes that is correct. Thanks for clarifying. |
b409e59 to
c75f98f
Compare
|
I updated the code to use |
c75f98f to
a231cc8
Compare
d1a0971 to
57b877e
Compare
|
@liggitt @caesarxuchao @janetkuo Any further comments? |
|
@kubernetes/kubectl |
|
LGTM |
Chao LGTM'ed but forgot to approve changes
|
Please squash commits. |
|
@ymqytw thank you for bearing with me. |
|
Ok to apply the LGTM label here and queue it up for merge? |
57b877e to
b73fae6
Compare
|
Squashed. |
|
Adding LGTM based on @caesarxuchao and @janetkuo's. Bumping up priority to P2 to avoid having to rebase. |
|
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
|
Automatic merge from submit-queue |
|
Thank so much for this @ymqytw |
The property was added in b73fae6 (Fix kubectl drain for statefulset and use eviciton for drain if possible, 2016-10-20, kubernetes#35483), but b358b2d (make drain retry forever and use new timeout, 2016-11-28, kubernetes#37604) removed the last consumer.
The property was added in b73fae6 (Fix kubectl drain for statefulset and use eviciton for drain if possible, 2016-10-20, kubernetes#35483), but b358b2d (make drain retry forever and use new timeout, 2016-11-28, kubernetes#37604) removed the last consumer.
Support deleting pets for
kubectl drain.Use evict to delete pods.
Fixes: #33727
@foxish @caesarxuchao
This change is