Merge "Fix nodeSlector and Affinity for robot deployment"
authorAlexis de Talhouët <alexis.de_talhouet@bell.ca>
Fri, 7 Dec 2018 18:14:29 +0000 (18:14 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 7 Dec 2018 18:14:29 +0000 (18:14 +0000)
kubernetes/robot/templates/deployment.yaml

index e230f4c..7b0c140 100644 (file)
@@ -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