From 0d9c8202d5f168975aa7ca58215679bd7de1b8f2 Mon Sep 17 00:00:00 2001 From: Jing Xu Date: Tue, 25 Aug 2020 20:05:40 -0700 Subject: [PATCH] Remove file_mode args for Windows test Due to issue https://github.com/kubernetes/kubernetes/issues/94237, remove file_mode arg for subPath tests for now. --- test/e2e/storage/testsuites/subpath.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/e2e/storage/testsuites/subpath.go b/test/e2e/storage/testsuites/subpath.go index 3781a5bdbfa..30abd27fb63 100644 --- a/test/e2e/storage/testsuites/subpath.go +++ b/test/e2e/storage/testsuites/subpath.go @@ -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) {