Skip to content

Commit

Permalink
fix: ass fsGroup for sts
Browse files Browse the repository at this point in the history
  • Loading branch information
moabu committed Jan 11, 2023
1 parent 0451de1 commit 3158281
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ spec:
dnsConfig:
{{ toYaml . | indent 12 }}
{{- end }}
securityContext:
runAsUser: 1000
runAsNonRoot: true
fsGroup: 1000
#fsGroupChangePolicy: "OnRootMismatch" enable once 1.23 is the lowest version
containers:
- name: {{ include "opendj.fullname" . }}-backup
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
securityContext:
runAsUser: 1000
runAsNonRoot: true
envFrom:
- configMapRef:
name: {{ .Release.Name }}-config-cm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ spec:
topologySpreadConstraints:
{{- include "opendj.topology-spread-constraints" . | indent 8 }}
{{- end }}
securityContext:
runAsUser: 1000
runAsNonRoot: true
fsGroup: 1000
#fsGroupChangePolicy: "OnRootMismatch" enable once 1.23 is the lowest version
containers:
- name: {{ include "opendj.name" $ }}
imagePullPolicy: {{ $.Values.image.pullPolicy }}
image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag }}"
securityContext:
runAsUser: 1000
runAsNonRoot: true
env:
{{- include "opendj.usr-envs" $ | indent 12 }}
{{- include "opendj.usr-secret-envs" $ | indent 12 }}
Expand Down

0 comments on commit 3158281

Please sign in to comment.