diff --git a/charts/base-cluster/templates/dns/external-dns.yaml b/charts/base-cluster/templates/dns/external-dns.yaml index 274252ff55..83a347fbe7 100644 --- a/charts/base-cluster/templates/dns/external-dns.yaml +++ b/charts/base-cluster/templates/dns/external-dns.yaml @@ -40,6 +40,12 @@ spec: {{- with .Values.dns.domains }} domainFilters: {{- toYaml . | nindent 6 }} {{- end }} + {{- with .Values.dns.zones }} + extraArgs: + {{- range $zone := . }} + - --zone-name-filter={{ $zone }} + {{- end }} + {{- end }} sources: - ingress - gateway-httproute diff --git a/charts/base-cluster/values.schema.json b/charts/base-cluster/values.schema.json index c0d547e155..124a289487 100644 --- a/charts/base-cluster/values.schema.json +++ b/charts/base-cluster/values.schema.json @@ -1150,6 +1150,14 @@ ] }, "domains": { + "description": "This field is also used for zone filtering if `zones` is not provided, be careful", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "zones": { "type": "array", "uniqueItems": true, "items": {