Skip to content

Commit 0d9c820

Browse files
committed
Remove file_mode args for Windows test
Due to issue kubernetes#94237, remove file_mode arg for subPath tests for now.
1 parent 4db3a09 commit 0d9c820

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/e2e/storage/testsuites/subpath.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,14 @@ func setWriteCommand(file string, container *v1.Container) {
686686
container.Args = []string{
687687
"mounttest",
688688
fmt.Sprintf("--new_file_0644=%v", file),
689-
fmt.Sprintf("--file_mode=%v", file),
690689
}
690+
// See issue https://github.com/kubernetes/kubernetes/issues/94237 about file_mode
691+
// not working well on Windows
692+
// TODO: remove this check after issue is resolved
693+
if !framework.NodeOSDistroIs("windows") {
694+
container.Args = append(container.Args, fmt.Sprintf("--file_mode=%v", file))
695+
}
696+
691697
}
692698

693699
func addSubpathVolumeContainer(container *v1.Container, volumeMount v1.VolumeMount) {

0 commit comments

Comments
 (0)