diff options
author | kranthikirang <kranthi.guttikonda@b-yond.com> | 2018-12-07 16:12:02 -0500 |
---|---|---|
committer | kranthikirang <kranthi.guttikonda@b-yond.com> | 2018-12-07 16:12:38 -0500 |
commit | cb25a53fd01e135a07505051de4111d34b600b38 (patch) | |
tree | b413e546f68af496f48d724c22afa52767fc7221 /kubernetes/aai/charts/aai-spike/templates | |
parent | 94363e1c6343e093bd6fa6ada854243bb8d7e1a6 (diff) |
Fix nodeSlector and Affinity for aai charts
Indentation problem. Correctly placed nodeSelector and Affinity
aligned with Contrainers in template.spec
common.resources do not need indent as indent 12 already present
in return value
Change-Id: Ie0e84fba2f18d903fdcc8bb8f6ff06a4785c0a75
Issue-ID: OOM-1541
Signed-off-by: Kranthi Guttikonda <kranthi.guttikonda@b-yond.com>
Signed-off-by: kranthikirang <kranthi.guttikonda@b-yond.com>
Diffstat (limited to 'kubernetes/aai/charts/aai-spike/templates')
-rw-r--r-- | kubernetes/aai/charts/aai-spike/templates/deployment.yaml | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/kubernetes/aai/charts/aai-spike/templates/deployment.yaml b/kubernetes/aai/charts/aai-spike/templates/deployment.yaml index a3ff068971..c962f1df2b 100644 --- a/kubernetes/aai/charts/aai-spike/templates/deployment.yaml +++ b/kubernetes/aai/charts/aai-spike/templates/deployment.yaml @@ -106,15 +106,15 @@ spec: - mountPath: /var/log/onap name: {{ include "common.fullname" . }}-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 }} # side car containers - name: filebeat-onap @@ -128,6 +128,8 @@ spec: name: {{ include "common.fullname" . }}-logs - mountPath: /usr/share/filebeat/data name: aai-filebeat + resources: +{{ include "common.resources" . }} volumes: - name: localtime |