From 5e93afec5ed06c7b26f34c658f64a67c69b548a6 Mon Sep 17 00:00:00 2001 From: Neha Arora <74526631+nearora-msft@users.noreply.github.com> Date: Tue, 12 Sep 2023 20:37:58 +0000 Subject: [PATCH] chore: Add affinity to the ndm-operator deployment --- deploy/helm/charts/templates/deployment.yaml | 3 +++ deploy/helm/charts/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/deploy/helm/charts/templates/deployment.yaml b/deploy/helm/charts/templates/deployment.yaml index 213a861e6..0a546f6f2 100644 --- a/deploy/helm/charts/templates/deployment.yaml +++ b/deploy/helm/charts/templates/deployment.yaml @@ -83,5 +83,8 @@ spec: {{- if .Values.ndmOperator.tolerations }} tolerations: {{ toYaml .Values.ndmOperator.tolerations | indent 8 }} +{{- if .Values.ndmOperator.affinity }} + affinity: +{{ toYaml .Values.ndmOperator.affinity | indent 8 }} {{- end }} {{- end }} diff --git a/deploy/helm/charts/values.yaml b/deploy/helm/charts/values.yaml index 25486060d..9742cb4e5 100644 --- a/deploy/helm/charts/values.yaml +++ b/deploy/helm/charts/values.yaml @@ -83,6 +83,8 @@ ndmOperator: periodSeconds: 10 replicas: 1 upgradeStrategy: Recreate + affinity: {} + ndmExporter: enabled: false