Support for configuring affinity for helm executor (#1989)

(cherry picked from commit e389253a4e)
This commit is contained in:
Xinzhao Xu
2024-10-24 15:12:01 +08:00
committed by hongming
parent 0cf715a89a
commit 811cc0290e
5 changed files with 29 additions and 0 deletions

View File

@@ -1556,6 +1556,7 @@ func (r *InstallPlanReconciler) newExecutor(plan *corev1alpha1.InstallPlan) (hel
helm.SetExecutorNamespace(plan.Status.TargetNamespace),
helm.SetExecutorBackoffLimit(0),
helm.SetTTLSecondsAfterFinished(r.HelmExecutorOptions.JobTTLAfterFinished),
helm.SetExecutorAffinity(r.HelmExecutorOptions.Affinity),
}
if r.HelmExecutorOptions.Resources != nil {
executorOptions = append(executorOptions, helm.SetExecutorResources(corev1.ResourceRequirements{