diff --git a/internal/controller/patch_funcs.go b/internal/controller/patch_funcs.go index 68365a7..6737883 100644 --- a/internal/controller/patch_funcs.go +++ b/internal/controller/patch_funcs.go @@ -141,6 +141,7 @@ func (r *LightrunJavaAgentReconciler) addInitContainer(deploymentApplyConfig *ap ). WithAllowPrivilegeEscalation(false). WithRunAsNonRoot(true). + WithReadOnlyRootFilesystem(true). WithSeccompProfile( corev1ac.SeccompProfile(). WithType(corev1.SeccompProfileTypeRuntimeDefault), @@ -316,6 +317,7 @@ func (r *LightrunJavaAgentReconciler) addInitContainerToStatefulSet(statefulSetA ). WithAllowPrivilegeEscalation(false). WithRunAsNonRoot(true). + WithReadOnlyRootFilesystem(true). WithSeccompProfile( corev1ac.SeccompProfile(). WithType(corev1.SeccompProfileTypeRuntimeDefault),