Merge pull request #76300 from jingxu97/April/window_provisioning_fix

Fix test failures in volume provisioning
This commit is contained in:
Kubernetes Prow Robot 2019-04-12 11:35:00 -07:00 committed by GitHub
commit 73e4b133f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,6 +373,9 @@ func PVWriteReadSingleNodeCheck(client clientset.Interface, claim *v1.Persistent
}
command += " || (mount | grep 'on /mnt/test'; false)"
if framework.NodeOSDistroIs("windows") {
command = "select-string 'hello world' /mnt/test/data"
}
RunInPodWithVolume(client, claim.Namespace, claim.Name, "pvc-volume-tester-reader", command, framework.NodeSelection{Name: actualNodeName})
return volume