From f15c6761939f5d5c672dc9d66374754d51f7c37e Mon Sep 17 00:00:00 2001 From: Aurel Canciu Date: Fri, 19 Jul 2024 21:25:13 +0200 Subject: [PATCH] Copy the affinity configuration to backup init job This will allow the backup initialization job to use the same affinity configuration vttablet uses, copied from the top-level pool configuration. Signed-off-by: Aurel Canciu --- pkg/controller/vitessshard/reconcile_backup_job.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/vitessshard/reconcile_backup_job.go b/pkg/controller/vitessshard/reconcile_backup_job.go index ab341cba..f580ce91 100644 --- a/pkg/controller/vitessshard/reconcile_backup_job.go +++ b/pkg/controller/vitessshard/reconcile_backup_job.go @@ -247,6 +247,7 @@ func vtbackupSpec(key client.ObjectKey, vts *planetscalev2.VitessShard, parentLa SidecarContainers: pool.SidecarContainers, ExtraEnv: pool.ExtraEnv, Annotations: annotations, + Affinity: pool.Affinity, Tolerations: pool.Tolerations, ImagePullSecrets: vts.Spec.ImagePullSecrets, }