Amending the GMSA e2e test to allow it to run against Windows-only clusters

e2e Windows tests can be run against Windows-only clusters, which
currently will cause the GMSA test to fail, as it needs to be able to
deploy pods to at least one Linux node, for the GMSA webhook; this patch leverages the new
`--tolerate-master` flag that was added to the GMSA webhook deploy
script in https://github.com/kubernetes-sigs/windows-gmsa/pull/18.

Signed-off-by: Jean Rouge <rougej+github@gmail.com>
This commit is contained in:
Jean Rouge 2019-10-11 14:15:59 -07:00
parent efb5e676e1
commit d17624ad82

View File

@ -245,7 +245,8 @@ func deployGmsaWebhook(f *framework.Framework, deployScriptPath string) (func(),
"--file", manifestsFile,
"--name", name,
"--namespace", namespace,
"--certs-dir", certsDir)
"--certs-dir", certsDir,
"--tolerate-master")
output, err := cmd.CombinedOutput()
if err == nil {