Fix error with duplicate securitycontext entries.

This commit is contained in:
Tommy 2023-10-29 15:28:37 +01:00
parent ee036a28ad
commit 2bd58d0712
2 changed files with 5 additions and 5 deletions

View file

@ -2,5 +2,5 @@ apiVersion: v2
name: conduit name: conduit
description: Conduit is a simple, fast and reliable chat server powered by Matrix. description: Conduit is a simple, fast and reliable chat server powered by Matrix.
type: application type: application
version: 0.2.6 version: 0.2.7
appVersion: "0.6.0" appVersion: "0.6.0"

View file

@ -33,6 +33,9 @@ spec:
{{- end }} {{- end }}
serviceAccountName: {{ include "conduit.serviceAccountName" . }} serviceAccountName: {{ include "conduit.serviceAccountName" . }}
securityContext: securityContext:
{{- if .Values.persistence.enabled }}
fsGroup: 1000
{{- end }}
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
@ -117,7 +120,4 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ template "conduit.fullname" . }} claimName: {{ template "conduit.fullname" . }}
{{- end }} {{- end }}
{{- if .Values.persistence.enabled }}
securityContext:
fsGroup: 1000
{{- end }}