Skip to content

Commit

Permalink
Merge pull request #5384 from zalando-incubator/alpha-hotfix
Browse files Browse the repository at this point in the history
[Hotfix: alpha] Allow rolling back external-dns version
  • Loading branch information
szuecs authored Sep 21, 2022
2 parents dcfa5ba + d3a8485 commit 80fa4c9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cluster/config-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,11 @@ external_dns_excluded_domains: cluster.local
# synchronization policy between Kubernetes and AWS Route53 (default: sync, options: sync, upsert-only, create-only)
external_dns_policy: sync

# eternal-dns version for controlling roll-out, can be "current" or "legacy"
# current => v0.12.2-master-29
# legacy => v0.9.0-master-26
external_dns_version: "current"

# select which cache to use for Cluster DNS: unbound or dnsmasq.
dns_cache: "dnsmasq"

Expand Down
4 changes: 4 additions & 0 deletions cluster/manifests/external-dns/01-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ rules:
- apiGroups: [""]
resources: ["services", "endpoints", "pods", "nodes"]
verbs: ["list"]
{{- if eq .Cluster.ConfigItems.external_dns_version "current" }}
- apiGroups: ["networking.k8s.io"]
{{- else }}
- apiGroups: ["extensions"]
{{- end }}
resources: ["ingresses"]
verbs: ["list"]
- apiGroups: ["zalando.org"]
Expand Down
4 changes: 4 additions & 0 deletions cluster/manifests/external-dns/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ spec:
serviceAccountName: external-dns
containers:
- name: external-dns
{{- if eq .Cluster.ConfigItems.external_dns_version "current" }}
image: container-registry.zalando.net/teapot/external-dns:v0.12.2-master-29
{{- else }}
image: container-registry.zalando.net/teapot/external-dns:v0.9.0-master-26
{{- end }}
args:
- --source=service
- --source=ingress
Expand Down

0 comments on commit 80fa4c9

Please sign in to comment.