mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Fix volume mount tests issue for windows
For windows node, security context is disabled. This PR fixes a bug so that fsGroup will not be applied to pods that run on windows node. Change-Id: Id9870416d2ad8ef791b3b4896d6747a2adbada2f
This commit is contained in:
parent
1d2e8f318d
commit
8aacb8003f
@ -546,10 +546,8 @@ func InjectHTML(client clientset.Interface, config TestConfig, fsGroup *int64, v
|
||||
SecurityContext: GenerateSecurityContext(true),
|
||||
},
|
||||
},
|
||||
SecurityContext: &v1.PodSecurityContext{
|
||||
FSGroup: fsGroup,
|
||||
},
|
||||
RestartPolicy: v1.RestartPolicyNever,
|
||||
SecurityContext: GeneratePodSecurityContext(fsGroup, nil),
|
||||
RestartPolicy: v1.RestartPolicyNever,
|
||||
Volumes: []v1.Volume{
|
||||
{
|
||||
Name: volMountName,
|
||||
|
Loading…
Reference in New Issue
Block a user