diff --git a/charts/external-dns/CHANGELOG.md b/charts/external-dns/CHANGELOG.md index d4e3a5fc3d..2a92c9d669 100644 --- a/charts/external-dns/CHANGELOG.md +++ b/charts/external-dns/CHANGELOG.md @@ -20,6 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed support for gateway-grpcroute, gateway-tlsroute, gateway-tcproute, gateway-udproute + https://github.com/kubernetes-sigs/external-dns/issues/3845 - Fix args for webhook deployment. ([#4202](https://github.com/kubernetes-sigs/external-dns/pull/4202)) ## [v1.14.2] - 2024-01-22 diff --git a/charts/external-dns/templates/clusterrole.yaml b/charts/external-dns/templates/clusterrole.yaml index 7514beef72..44f72bd2ad 100644 --- a/charts/external-dns/templates/clusterrole.yaml +++ b/charts/external-dns/templates/clusterrole.yaml @@ -59,17 +59,15 @@ rules: - apiGroups: ["gateway.networking.k8s.io"] resources: ["gateways"] verbs: ["get","watch","list"] + - apiGroups: [""] + resources: ["namespaces"] + verbs: ["get","watch","list"] {{- end }} {{- if has "gateway-httproute" .Values.sources }} - apiGroups: ["gateway.networking.k8s.io"] resources: ["httproutes"] verbs: ["get","watch","list"] {{- end }} -{{- if has "gateway-httproute" .Values.sources }} - - apiGroups: [""] - resources: ["namespaces"] - verbs: ["get","watch","list"] -{{- end }} {{- if has "gateway-grpcroute" .Values.sources }} - apiGroups: ["gateway.networking.k8s.io"] resources: ["grpcroutes"]