Merge pull request #94242 from jingxu97/Aug/filemode

Remove file_mode args for Windows test
This commit is contained in:
Kubernetes Prow Robot 2020-08-27 10:38:33 -07:00 committed by GitHub
commit b5de8b9979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -686,8 +686,14 @@ func setWriteCommand(file string, container *v1.Container) {
container.Args = []string{
"mounttest",
fmt.Sprintf("--new_file_0644=%v", file),
fmt.Sprintf("--file_mode=%v", file),
}
// See issue https://github.com/kubernetes/kubernetes/issues/94237 about file_mode
// not working well on Windows
// TODO: remove this check after issue is resolved
if !framework.NodeOSDistroIs("windows") {
container.Args = append(container.Args, fmt.Sprintf("--file_mode=%v", file))
}
}
func addSubpathVolumeContainer(container *v1.Container, volumeMount v1.VolumeMount) {