From 72602d8b6e21f16fc74175de91cc3ef9317f8e15 Mon Sep 17 00:00:00 2001 From: laiminhtrung1997 <68812829+laiminhtrung1997@users.noreply.github.com> Date: Tue, 21 Feb 2023 16:59:43 +0700 Subject: [PATCH] Update _common.tpl Signed-off-by: laiminhtrung1997 <68812829+laiminhtrung1997@users.noreply.github.com> --- charts/argo-cd/templates/_common.tpl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/charts/argo-cd/templates/_common.tpl b/charts/argo-cd/templates/_common.tpl index 2ba53d8c..8e7fc928 100644 --- a/charts/argo-cd/templates/_common.tpl +++ b/charts/argo-cd/templates/_common.tpl @@ -79,8 +79,8 @@ Node affinity {{- else -}} {{- $preset := .context.Values.global.affinity -}} podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: {{- if (eq $preset.podAntiAffinity "soft") }} + preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 podAffinityTerm: labelSelector: @@ -88,12 +88,6 @@ podAntiAffinity: app.kubernetes.io/name: {{ include "argo-cd.name" .context }}-{{ .component.name }} topologyKey: kubernetes.io/hostname {{- else }} - - weight: 100 - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/name: {{ include "argo-cd.name" .context }}-{{ .component.name }} - topologyKey: topology.kubernetes.io/zone requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: