diff --git a/charts/external-dns/ci/ci-values.yaml b/charts/external-dns/ci/ci-values.yaml index 97a6626419..8729deeecc 100644 --- a/charts/external-dns/ci/ci-values.yaml +++ b/charts/external-dns/ci/ci-values.yaml @@ -2,3 +2,35 @@ labelFilter: foo=bar managedRecordTypes: [] provider: name: inmemory +affinity: + podAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + topologyKey : "kubernetes.io/hostname" + labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - test + requiredDuringSchedulingIgnoredDuringExecution: + - topologyKey : "kubernetes.io/hostname" + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + topologyKey : "kubernetes.io/hostname" + requiredDuringSchedulingIgnoredDuringExecution: + - topologyKey : "kubernetes.io/hostname" + labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - test + +topologySpreadConstraints: + - maxSkew: 1 + topologyKey: "topology.kubernetes.io/zone" + whenUnsatisfiable: "ScheduleAnyway" diff --git a/charts/external-dns/templates/_helpers.tpl b/charts/external-dns/templates/_helpers.tpl index c44836c9cf..13805c7db7 100644 --- a/charts/external-dns/templates/_helpers.tpl +++ b/charts/external-dns/templates/_helpers.tpl @@ -97,7 +97,6 @@ The image to use for optional webhook sidecar {{/* The pod affinity default label Selector */}} - {{- define "external-dns.labelSelector" -}} labelSelector: matchLabels: