mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #111306 from stlaz/restricted_scheduling_test
Make scheduling e2e tests run PSa-restricted pods
This commit is contained in:
commit
9525206bcb
@ -828,15 +828,17 @@ func initPausePod(f *framework.Framework, conf pausePodConfig) *v1.Pod {
|
|||||||
OwnerReferences: conf.OwnerReferences,
|
OwnerReferences: conf.OwnerReferences,
|
||||||
},
|
},
|
||||||
Spec: v1.PodSpec{
|
Spec: v1.PodSpec{
|
||||||
|
SecurityContext: e2epod.GetRestrictedPodSecurityContext(),
|
||||||
NodeSelector: conf.NodeSelector,
|
NodeSelector: conf.NodeSelector,
|
||||||
Affinity: conf.Affinity,
|
Affinity: conf.Affinity,
|
||||||
TopologySpreadConstraints: conf.TopologySpreadConstraints,
|
TopologySpreadConstraints: conf.TopologySpreadConstraints,
|
||||||
RuntimeClassName: conf.RuntimeClassHandler,
|
RuntimeClassName: conf.RuntimeClassHandler,
|
||||||
Containers: []v1.Container{
|
Containers: []v1.Container{
|
||||||
{
|
{
|
||||||
Name: conf.Name,
|
Name: conf.Name,
|
||||||
Image: imageutils.GetPauseImageName(),
|
Image: imageutils.GetPauseImageName(),
|
||||||
Ports: conf.Ports,
|
Ports: conf.Ports,
|
||||||
|
SecurityContext: e2epod.GetRestrictedContainerSecurityContext(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Tolerations: conf.Tolerations,
|
Tolerations: conf.Tolerations,
|
||||||
|
Loading…
Reference in New Issue
Block a user