From fa4770a8c4a8de1f07a73ffa9121d6520f2acdb8 Mon Sep 17 00:00:00 2001 From: Naama Solomon <52195888+I065450@users.noreply.github.com> Date: Mon, 26 Aug 2024 11:30:16 +0300 Subject: [PATCH] fix helm and add support for affinity (#460) * fix helm and add support for affinity --- sapbtp-operator-charts/templates/deployment.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sapbtp-operator-charts/templates/deployment.yml b/sapbtp-operator-charts/templates/deployment.yml index 26ab6341..f1e242aa 100644 --- a/sapbtp-operator-charts/templates/deployment.yml +++ b/sapbtp-operator-charts/templates/deployment.yml @@ -136,8 +136,14 @@ spec: defaultMode: 420 secretName: webhook-server-cert {{- if .Values.manager.nodeSelector }} - nodeSelector: {{ toYaml .Values.deployment.nodeSelector | nindent 8 }} + nodeSelector: {{ toYaml .Values.manager.nodeSelector | nindent 8 }} {{- end }} {{- if .Values.manager.tolerations }} - tolerations: {{ toYaml .Values.deployment.tolerations | nindent 8 }} + tolerations: {{ toYaml .Values.manager.tolerations | nindent 8 }} {{- end }} + {{- if .Values.manager.affinity }} + affinity: {{ toYaml .Values.manager.affinity | nindent 8 }} + {{- end }} + { { - if .Values.manager.topologySpreadConstraints } } + topologySpreadConstraints: { { toYaml .Values.manager.topologySpreadConstraints | nindent 8 } } + { { - end } } \ No newline at end of file