diff --git a/charts/external-dns/templates/clusterrole.yaml b/charts/external-dns/templates/clusterrole.yaml index 177a7b6e0..4f33c1146 100644 --- a/charts/external-dns/templates/clusterrole.yaml +++ b/charts/external-dns/templates/clusterrole.yaml @@ -70,6 +70,11 @@ rules: 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"]