Skip to content

Commit da92f69

Browse files
committed
Set podSecurityContext.fsGroup to 0 instead of 999
1 parent 4488a4b commit da92f69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/resource/statefulset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ func (builder *StatefulSetBuilder) podTemplateSpec(previousPodAnnotations map[st
555555
},
556556
},
557557
SecurityContext: &corev1.PodSecurityContext{
558-
FSGroup: &rabbitmqUID,
558+
FSGroup: pointer.Int64(0),
559559
RunAsUser: &rabbitmqUID,
560560
},
561561
ImagePullSecrets: builder.Instance.Spec.ImagePullSecrets,

internal/resource/statefulset_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ default_pass = {{ .Data.data.password }}
13071307
rmqUID := int64(999)
13081308

13091309
expectedPodSecurityContext := &corev1.PodSecurityContext{
1310-
FSGroup: &rmqUID,
1310+
FSGroup: pointer.Int64(0),
13111311
RunAsUser: &rmqUID,
13121312
}
13131313

0 commit comments

Comments
 (0)