Skip to content

Commit

Permalink
Include labelSelector for affinity and topologySpreadConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
pvickery-ParamountCommerce committed Dec 2, 2024
1 parent d61a403 commit 4400005
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
32 changes: 32 additions & 0 deletions charts/external-dns/ci/ci-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 0 additions & 1 deletion charts/external-dns/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ The image to use for optional webhook sidecar
{{/*
The pod affinity default label Selector
*/}}

{{- define "external-dns.labelSelector" -}}
labelSelector:
matchLabels:
Expand Down

0 comments on commit 4400005

Please sign in to comment.