You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request kubernetes#17547 from juanvallejo/jvallejo/handle-ds-pod-drain-local-storage
Automatic merge from submit-queue (batch tested with PRs 17547, 18151).
UPSTREAM: 56713: Allow oadm drain to continue w ds-managed pods with local storage
Fixesopenshift/origin#17522
UPSTREAM: kubernetes#56713
Prevents oadm drain from failing if it encounters DaemonSet-managed pods
that have local storage, when the option to ignore DaemonSet-managed
pods has been specified.
Will add tests
cc @openshift/cli-review @dustymabe@deads2k
Origin-commit: 1c8ec8f29d1fd182c8329d57e1bd22286b8fd7c9
t.Fatalf("%s: unexpected delete when using %s", test.description, currMethod)
694
740
}
695
741
}
742
+
743
+
iflen(test.expectWarning) >0 {
744
+
iflen(errBuf.String()) ==0 {
745
+
t.Fatalf("%s: expected warning, but found no stderr output", test.description)
746
+
}
747
+
748
+
iferrBuf.String() !=test.expectWarning {
749
+
t.Fatalf("%s: actual warning message did not match expected warning message.\n Expecting: %s\n Got: %s", test.description, test.expectWarning, errBuf.String())
0 commit comments