We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f25e8 commit 2163edfCopy full SHA for 2163edf
lib/k8s/environment/runner.go
@@ -297,6 +297,9 @@ func job(chart cdk8s.Chart, props *Props) {
297
Annotations: a.ConvertAnnotations(defaultRunnerPodAnnotations),
298
},
299
Spec: &k8s.PodSpec{
300
+ SecurityContext: &k8s.PodSecurityContext{
301
+ RunAsNonRoot: ptr.Ptr(true),
302
+ },
303
ServiceAccountName: ptr.Ptr("default"),
304
Containers: container(props),
305
RestartPolicy: ptr.Ptr(restartPolicy),
0 commit comments