From 8e1642e822b0cd5dd54d0aa97063926a36cdddbb Mon Sep 17 00:00:00 2001 From: Jannis Assenheimer Date: Fri, 30 Jan 2026 13:48:55 +0100 Subject: [PATCH] feat(charts/metaflow-service): apply security context to db-migrations init container --- .../metaflow/charts/metaflow-service/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/metaflow/charts/metaflow-service/templates/deployment.yaml b/charts/metaflow/charts/metaflow-service/templates/deployment.yaml index 0042568..e180007 100644 --- a/charts/metaflow/charts/metaflow-service/templates/deployment.yaml +++ b/charts/metaflow/charts/metaflow-service/templates/deployment.yaml @@ -30,6 +30,8 @@ spec: {{- if .Values.dbMigrations.runOnStart }} initContainers: - name: db-migrations + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" command: - "/opt/latest/bin/python3"