Skip to content

Commit 5481248

Browse files
authored
Merge pull request kubernetes#90113 from claudiubelu/windows-tests/gmsa-nanoserver
Windows tests: Makes gMSA test more nanoserver friendly
2 parents 303a6c7 + 335dc6e commit 5481248

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/e2e/windows/gmsa_full.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ func retrieveCRDManifestFileContents(f *framework.Framework, node v1.Node) strin
208208
}
209209
f.PodClient().CreateSync(pod)
210210

211-
// using powershell and using forward slashes avoids the nightmare of having to properly
212-
// escape quotes and backward slashes
213-
output, err := runKubectlExecInNamespace(f.Namespace.Name, podName, "powershell", "Get-Content", strings.ReplaceAll(gmsaCrdManifestPath, `\`, "/"))
211+
output, err := runKubectlExecInNamespace(f.Namespace.Name, podName, "cmd", "/S", "/C", fmt.Sprintf("type %s", gmsaCrdManifestPath))
214212
if err != nil {
215213
framework.Failf("failed to retrieve the contents of %q on node %q: %v", gmsaCrdManifestPath, node.Name, err)
216214
}

0 commit comments

Comments
 (0)