From 50b5268622737b80703b04fd95f84b9a27a4c726 Mon Sep 17 00:00:00 2001 From: Piotr Kowalczyk Date: Tue, 11 Apr 2023 11:45:59 +0200 Subject: [PATCH] Adding missing gateway-httproute cluster role permission Signed-off-by: Piotr Kowalczyk --- charts/external-dns/templates/clusterrole.yaml | 5 +++++ 1 file changed, 5 insertions(+) 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"]