From 43b5f68b4988e713f1d3219de284959081e7dc19 Mon Sep 17 00:00:00 2001 From: Anna Williamson Date: Fri, 30 Jan 2026 15:18:17 -0800 Subject: [PATCH] Add universal toleration to run on all nodes --- .../controller/core/site_controller_pre_pull.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/internal/controller/core/site_controller_pre_pull.go b/internal/controller/core/site_controller_pre_pull.go index c67d65cc..67b4df4c 100644 --- a/internal/controller/core/site_controller_pre_pull.go +++ b/internal/controller/core/site_controller_pre_pull.go @@ -100,18 +100,15 @@ func deployPrePullDaemonset(ctx context.Context, r *SiteReconciler, req controll }, }, }, + // Universal toleration to run on all nodes regardless of taints + Tolerations: []v1.Toleration{ + { + Operator: v1.TolerationOpExists, + }, + }, }, }, } - - if len(site.Spec.Workbench.Tolerations) > 0 { - // add the tolerations to the daemonset - for _, t := range site.Spec.Workbench.Tolerations { - prePullDaemonset.Spec.Template.Spec.Tolerations = append(prePullDaemonset.Spec.Template.Spec.Tolerations, *t.DeepCopy()) - } - - // TODO: should also use the workbench node selectors...? But could differ from Connect... - } return nil }); err != nil { l.Error(err, "error creating or updating pre-pull daemonset")