From 299c207ddbba647095a790c36f49823ff416ab97 Mon Sep 17 00:00:00 2001 From: Akash Kumar Date: Fri, 17 Oct 2025 16:05:22 +0530 Subject: [PATCH 1/3] Added support for node affinity tag in deployment --- .../templates/overwhelm-controller-manager-deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml b/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml index e357c80..c511aac 100755 --- a/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml +++ b/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml @@ -17,6 +17,9 @@ spec: labels: {{ toYaml .Values.deployment.labels | indent 8 }} spec: + {{- if and .Values.node .Values.node.affinity }} + affinity: {{- toYaml .Values.node.affinity | nindent 8 }} + {{- end }} {{- if and .Values.global .Values.global.imagePullSecrets }} imagePullSecrets: {{- range .Values.global.imagePullSecrets }} From 58fbc4b5269528f7fc081e731b7e3187eb989f8a Mon Sep 17 00:00:00 2001 From: Akash Kumar Date: Fri, 17 Oct 2025 19:06:46 +0530 Subject: [PATCH 2/3] Update overwhelm-controller-manager-deployment.yaml --- .../templates/overwhelm-controller-manager-deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml b/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml index c511aac..725604e 100755 --- a/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml +++ b/charts/overwhelm/templates/overwhelm-controller-manager-deployment.yaml @@ -17,8 +17,8 @@ spec: labels: {{ toYaml .Values.deployment.labels | indent 8 }} spec: - {{- if and .Values.node .Values.node.affinity }} - affinity: {{- toYaml .Values.node.affinity | nindent 8 }} + {{- with (.Values.deployment).affinity }} + affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- if and .Values.global .Values.global.imagePullSecrets }} imagePullSecrets: From 21b8ce016bc8c023dd7268043b60a9edcd45ed52 Mon Sep 17 00:00:00 2001 From: Akash Kumar Date: Fri, 17 Oct 2025 19:25:40 +0530 Subject: [PATCH 3/3] Update values.yaml --- charts/overwhelm/values.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/charts/overwhelm/values.yaml b/charts/overwhelm/values.yaml index f306847..d276bb4 100644 --- a/charts/overwhelm/values.yaml +++ b/charts/overwhelm/values.yaml @@ -17,4 +17,12 @@ deployment: requests: cpu: 128m memory: 64Mi + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: karpenter.sh/nodepool + operator: DoesNotExist +