Change allowed gcp auth plugin is deprecation warning text
It seems that google changed it from "the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead" to instead say "unavailable in v1.26+". Make the matcher in category_test.go more loose to allow both to match.
This commit is contained in:
parent
736b385d7b
commit
8f27219ac9
@ -36,7 +36,7 @@ func requireCleanKubectlStderr(t *testing.T, stderr string) {
|
|||||||
case strings.TrimSpace(line) == "",
|
case strings.TrimSpace(line) == "",
|
||||||
strings.Contains(line, "Throttling request took"),
|
strings.Contains(line, "Throttling request took"),
|
||||||
strings.Contains(line, "due to client-side throttling, not priority and fairness"),
|
strings.Contains(line, "due to client-side throttling, not priority and fairness"),
|
||||||
strings.Contains(line, "the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead"),
|
strings.Contains(line, "the gcp auth plugin is deprecated in v1.22+, unavailable in "),
|
||||||
strings.Contains(line, "To learn more, consult https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke"):
|
strings.Contains(line, "To learn more, consult https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke"):
|
||||||
// ignore these allowed stderr lines
|
// ignore these allowed stderr lines
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user