Merge pull request #111306 from stlaz/restricted_scheduling_test

Make scheduling e2e tests run PSa-restricted pods
This commit is contained in:
Kubernetes Prow Robot 2022-07-26 08:01:21 -07:00 committed by GitHub
commit 9525206bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -828,15 +828,17 @@ func initPausePod(f *framework.Framework, conf pausePodConfig) *v1.Pod {
OwnerReferences: conf.OwnerReferences,
},
Spec: v1.PodSpec{
SecurityContext: e2epod.GetRestrictedPodSecurityContext(),
NodeSelector: conf.NodeSelector,
Affinity: conf.Affinity,
TopologySpreadConstraints: conf.TopologySpreadConstraints,
RuntimeClassName: conf.RuntimeClassHandler,
Containers: []v1.Container{
{
Name: conf.Name,
Image: imageutils.GetPauseImageName(),
Ports: conf.Ports,
Name: conf.Name,
Image: imageutils.GetPauseImageName(),
Ports: conf.Ports,
SecurityContext: e2epod.GetRestrictedContainerSecurityContext(),
},
},
Tolerations: conf.Tolerations,