From 78a29a21d6932ed65299d4b407c8e68cf9d7af29 Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Mon, 25 Jan 2021 10:30:51 +0100 Subject: [PATCH] securityContext of container, not pod --- charts/postgres-operator/templates/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/postgres-operator/templates/deployment.yaml b/charts/postgres-operator/templates/deployment.yaml index da80676d2..2249c4677 100644 --- a/charts/postgres-operator/templates/deployment.yaml +++ b/charts/postgres-operator/templates/deployment.yaml @@ -54,6 +54,8 @@ spec: {{- end }} resources: {{ toYaml .Values.resources | indent 10 }} + securityContext: +{{ toYaml .Values.securityContext| indent 10 }} {{- if .Values.imagePullSecrets }} imagePullSecrets: {{ toYaml .Values.imagePullSecrets | indent 8 }} @@ -62,8 +64,6 @@ spec: {{ toYaml .Values.affinity | indent 8 }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} - securityContext: -{{ toYaml .Values.securityContext| indent 8 }} tolerations: {{ toYaml .Values.tolerations | indent 8 }} {{- if .Values.priorityClassName }}