Merge pull request #90113 from claudiubelu/windows-tests/gmsa-nanoserver

Windows tests: Makes gMSA test more nanoserver friendly
This commit is contained in:
Kubernetes Prow Robot 2020-04-14 12:34:26 -07:00 committed by GitHub
commit 548124828c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,9 +208,7 @@ func retrieveCRDManifestFileContents(f *framework.Framework, node v1.Node) strin
}
f.PodClient().CreateSync(pod)
// using powershell and using forward slashes avoids the nightmare of having to properly
// escape quotes and backward slashes
output, err := runKubectlExecInNamespace(f.Namespace.Name, podName, "powershell", "Get-Content", strings.ReplaceAll(gmsaCrdManifestPath, `\`, "/"))
output, err := runKubectlExecInNamespace(f.Namespace.Name, podName, "cmd", "/S", "/C", fmt.Sprintf("type %s", gmsaCrdManifestPath))
if err != nil {
framework.Failf("failed to retrieve the contents of %q on node %q: %v", gmsaCrdManifestPath, node.Name, err)
}