Merge pull request #73749 from wongma7/subpath-init-write-multiple

Fix multiple subpaths e2e: read/write in same container
This commit is contained in:
Kubernetes Prow Robot 2019-02-05 13:57:02 -08:00 committed by GitHub
commit 9384e93dc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -291,7 +291,8 @@ func testSubPath(input *subPathTestInput) {
SubPath: "subpath2",
})
addMultipleWrites(&input.pod.Spec.InitContainers[1], filepath1, filepath2)
// Write the files from container 0 and instantly read them back
addMultipleWrites(&input.pod.Spec.Containers[0], filepath1, filepath2)
testMultipleReads(input.f, input.pod, 0, filepath1, filepath2)
})