Skip to content

Commit d6aac33

Browse files
stubbiclaude
andauthored
fix: set runAsNonRoot=false on SELinux relabel init container (#42)
The pod-level runAsNonRoot=true policy blocks the privileged init container from running as root. Override it at the container level. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 93df250 commit d6aac33

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

internal/resources/statefulset.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ func BuildStatefulSet(instance *paperclipv1alpha1.Instance, extraPodAnnotations
8282
{Name: DataVolumeName, MountPath: DataMountPath},
8383
},
8484
SecurityContext: &corev1.SecurityContext{
85-
Privileged: Ptr(true),
86-
RunAsUser: Ptr(int64(0)),
85+
Privileged: Ptr(true),
86+
RunAsUser: Ptr(int64(0)),
87+
RunAsNonRoot: Ptr(false),
8788
},
8889
})
8990
}

0 commit comments

Comments
 (0)