From e512fb4beb203aa944c90abcdf62b8667b7dbb0e Mon Sep 17 00:00:00 2001 From: kranthikirang Date: Thu, 6 Dec 2018 20:14:44 -0500 Subject: [PATCH] Fix nodeSlector and Affinity for robot deployment Indentation problem. Correctly placed nodeSelector and Affinity aligned with Contrainers in template.spec common.resources do not need indent Change-Id: Ib8cf9a30fb5a3c8c7ae095ac9d7f5d63f69ae1a6 Issue-ID: OOM-1540 Signed-off-by: Kranthi Guttikonda --- kubernetes/robot/templates/deployment.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/kubernetes/robot/templates/deployment.yaml b/kubernetes/robot/templates/deployment.yaml index e230f4c3b6..7b0c140269 100644 --- a/kubernetes/robot/templates/deployment.yaml +++ b/kubernetes/robot/templates/deployment.yaml @@ -59,15 +59,15 @@ spec: - name: robot-logs mountPath: /share/logs 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 }} +{{ include "common.resources" . }} + {{- if .Values.nodeSelector }} + nodeSelector: +{{ toYaml .Values.nodeSelector | indent 8 }} + {{- end -}} + {{- if .Values.affinity }} + affinity: +{{ toYaml .Values.affinity | indent 8 }} + {{- end }} volumes: {{- if .Values.persistence.enabled }} - name: robot-logs -- 2.16.6