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"