Skip to content

Commit 2163edf

Browse files
committed
fix remote runner for main.stage
1 parent c5f25e8 commit 2163edf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/k8s/environment/runner.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ func job(chart cdk8s.Chart, props *Props) {
297297
Annotations: a.ConvertAnnotations(defaultRunnerPodAnnotations),
298298
},
299299
Spec: &k8s.PodSpec{
300+
SecurityContext: &k8s.PodSecurityContext{
301+
RunAsNonRoot: ptr.Ptr(true),
302+
},
300303
ServiceAccountName: ptr.Ptr("default"),
301304
Containers: container(props),
302305
RestartPolicy: ptr.Ptr(restartPolicy),

0 commit comments

Comments
 (0)