mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
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.
This commit is contained in:
parent
4db3a096ce
commit
0d9c8202d5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user