diff --git a/charts/cloudnative-pg/templates/deployment.yaml b/charts/cloudnative-pg/templates/deployment.yaml index 413ec4da5..57e215bde 100644 --- a/charts/cloudnative-pg/templates/deployment.yaml +++ b/charts/cloudnative-pg/templates/deployment.yaml @@ -79,7 +79,7 @@ spec: fieldPath: metadata.namespace - name: MONITORING_QUERIES_CONFIGMAP value: "{{ .Values.monitoringQueriesConfigMap.name }}" - {{ if not .Values.config.clusterWide -}} + {{- if not .Values.config.clusterWide }} - name: WATCH_NAMESPACE value: "{{ .Release.Namespace }}" {{- end }}