From 54bfd171646157f20c00437ebd0afcc7d6bc0c13 Mon Sep 17 00:00:00 2001 From: Satoshi Fujii Date: Sun, 4 Jul 2021 16:39:41 +0000 Subject: [SDNC] Fix indent level for nodeSelector and affinity When nodeSelector was given by values or override.yaml, helm deploy was failed due to wrong indentation in helm charts. This change fixed indentation level for nodeSelector and affinity in pod spec. Issue-ID: SDNC-1565 Signed-off-by: Satoshi Fujii Change-Id: Ie5446928e3f32d9333c04245fc0d2c0f98b3b4e7 --- .../components/sdnc-prom/templates/deployment.yaml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'kubernetes/sdnc/components/sdnc-prom/templates/deployment.yaml') diff --git a/kubernetes/sdnc/components/sdnc-prom/templates/deployment.yaml b/kubernetes/sdnc/components/sdnc-prom/templates/deployment.yaml index 1c9adad5a0..4cf61f518e 100644 --- a/kubernetes/sdnc/components/sdnc-prom/templates/deployment.yaml +++ b/kubernetes/sdnc/components/sdnc-prom/templates/deployment.yaml @@ -62,17 +62,13 @@ spec: mountPath: /app/bin - name: core-dns-keyfile mountPath: /app/config/coredns - - resources: -{{ include "common.resources" . | indent 12 }} - {{- if .Values.nodeSelector }} - nodeSelector: -{{ toYaml .Values.nodeSelector | indent 10 }} - {{- end -}} - {{- if .Values.affinity }} - affinity: -{{ toYaml .Values.affinity | indent 10 }} - {{- end }} + resources: {{ include "common.resources" . | nindent 10 }} + {{- if .Values.nodeSelector }} + nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + {{- if .Values.affinity }} + affinity: {{ toYaml .Values.affinity | nindent 8 }} + {{- end }} volumes: - name: localtime hostPath: -- cgit 1.2.3-korg