aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorkranthikirang <kranthi.guttikonda@b-yond.com>2018-12-06 20:14:44 -0500
committerkranthikirang <kranthi.guttikonda@b-yond.com>2018-12-06 20:14:44 -0500
commitcbfa50d59c364e4f3018458b99fd1641cc14edd3 (patch)
tree9135febd87d8e730d6587c3ce956fad4bf58787c /templates
parentcaa1acc3c87e0041e2b26f8d78b5c27adfd7dcf0 (diff)
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 <kranthi.guttikonda@b-yond.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/deployment.yaml18
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/deployment.yaml b/templates/deployment.yaml
index e230f4c..7b0c140 100644
--- a/templates/deployment.yaml
+++ b/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