Skip to content

Commit 0dc6645

Browse files
committed
Fix typo
1 parent b6a8643 commit 0dc6645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/registry/reconciler/reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ func addSecurityContext(pod *corev1.Pod, runAsUser int64) {
371371
pod.Spec.Containers[i].SecurityContext = &corev1.SecurityContext{}
372372
}
373373
pod.Spec.Containers[i].SecurityContext.AllowPrivilegeEscalation = ptr.To(false)
374-
pod.Spec.InitContainers[i].SecurityContext.ReadOnlyRootFilesystem = ptr.To(true)
374+
pod.Spec.Containers[i].SecurityContext.ReadOnlyRootFilesystem = ptr.To(true)
375375
pod.Spec.Containers[i].SecurityContext.Capabilities = &corev1.Capabilities{
376376
Drop: []corev1.Capability{"ALL"},
377377
}

0 commit comments

Comments
 (0)