From 36c2d69b88cdf528c0655b9379248f0a03054239 Mon Sep 17 00:00:00 2001 From: Federico Maleh Date: Thu, 9 Jul 2026 23:01:40 -0300 Subject: [PATCH] feat: re-add scheduled task nodeSelector with correct indentation --- CHANGELOG.md | 1 + scheduled_task/deployment/templates/deployment.yaml.tpl | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e5b771a..525b83f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add support to get AWS credentials via assume role - Add support to auto-create ALBs on scope create - Fix race condition on IAM role creation when multiple scopes are created concurrently +- Add nodeSelector support for scheduled task scopes ## [1.12.0] - 2026-06-08 - Fix: do not inject file parameter as env vars diff --git a/scheduled_task/deployment/templates/deployment.yaml.tpl b/scheduled_task/deployment/templates/deployment.yaml.tpl index a1d9f1f1..c556acfd 100644 --- a/scheduled_task/deployment/templates/deployment.yaml.tpl +++ b/scheduled_task/deployment/templates/deployment.yaml.tpl @@ -124,6 +124,11 @@ spec: tolerations: {{ data.ToYAML $tolerations | indent 10 }} {{- end }} + {{- $nodeSelector := index $deployment "nodeselector" }} + {{- if $nodeSelector }} + nodeSelector: +{{ data.ToYAML $nodeSelector | indent 12 }} + {{- end }} {{- end }} {{- if .pull_secrets.ENABLED }} imagePullSecrets: