From b6cf62ea016a56d1b3cb10259c8f323bfdf6c498 Mon Sep 17 00:00:00 2001 From: Giovanni Ferri Date: Wed, 9 Sep 2026 02:11:16 +0100 Subject: [PATCH] fix(chart): tolerate dedicated runner taint on operator --- charts/imp/templates/operator/deployment.yaml | 4 ++++ charts/imp/tests/operator-deployment_test.yaml | 7 +++++++ charts/imp/values.yaml | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/charts/imp/templates/operator/deployment.yaml b/charts/imp/templates/operator/deployment.yaml index 11d7463..24c0588 100644 --- a/charts/imp/templates/operator/deployment.yaml +++ b/charts/imp/templates/operator/deployment.yaml @@ -34,6 +34,10 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.operator.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} {{- if eq .Values.operator.antiAffinity "required" }} affinity: podAntiAffinity: diff --git a/charts/imp/tests/operator-deployment_test.yaml b/charts/imp/tests/operator-deployment_test.yaml index 3d77caa..54d6686 100644 --- a/charts/imp/tests/operator-deployment_test.yaml +++ b/charts/imp/tests/operator-deployment_test.yaml @@ -16,6 +16,13 @@ tests: - equal: path: spec.replicas value: 2 + - contains: + path: spec.template.spec.tolerations + content: + key: imp.dev/runner + operator: Equal + value: "true" + effect: NoSchedule - contains: path: spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution content: diff --git a/charts/imp/values.yaml b/charts/imp/values.yaml index 86914f1..0c83454 100644 --- a/charts/imp/values.yaml +++ b/charts/imp/values.yaml @@ -36,6 +36,12 @@ operator: cpu: 500m memory: 512Mi nodeSelector: {} + # Operator pods must remain schedulable on dedicated Imp runner nodes. + tolerations: + - key: imp.dev/runner + operator: Equal + value: "true" + effect: NoSchedule rbac: cniDetection: minimal extraEnv: []