From 175414c131ee16a4d1043667a1e3696017912057 Mon Sep 17 00:00:00 2001 From: Johannes Voscort Date: Fri, 3 May 2024 11:09:40 +0200 Subject: [PATCH] feat(statefulset): add containerSecurityContext to init containers --- charts/qdrant/templates/statefulset.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/charts/qdrant/templates/statefulset.yaml b/charts/qdrant/templates/statefulset.yaml index 369b447..d43415a 100644 --- a/charts/qdrant/templates/statefulset.yaml +++ b/charts/qdrant/templates/statefulset.yaml @@ -50,6 +50,10 @@ spec: volumeMounts: - name: qdrant-storage mountPath: /qdrant/storage + {{- with .Values.containerSecurityContext }} + securityContext: + {{- toYaml . | nindent 10 }} + {{- end }} {{- if .Values.snapshotRestoration.enabled }} - name: ensure-snapshots-dir-ownership image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" @@ -61,6 +65,10 @@ spec: volumeMounts: - name: qdrant-snapshots mountPath: /qdrant/snapshots + {{- with .Values.containerSecurityContext }} + securityContext: + {{- toYaml . | nindent 10 }} + {{- end }} {{- end }} {{- end }} {{- end }}