From dedf088faddbcd15cde5a940fc9cbd7e953042d0 Mon Sep 17 00:00:00 2001 From: Matthew Warman Date: Tue, 1 Feb 2022 15:28:14 +0000 Subject: [PATCH] Add istio-gateway permissions on source istio-virtualservice --- charts/external-dns/templates/clusterrole.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/external-dns/templates/clusterrole.yaml b/charts/external-dns/templates/clusterrole.yaml index 7ad8da0b5..7c1b04c03 100644 --- a/charts/external-dns/templates/clusterrole.yaml +++ b/charts/external-dns/templates/clusterrole.yaml @@ -30,7 +30,7 @@ rules: verbs: ["get","watch","list"] {{- end }} -{{- if has "istio-gateway" .Values.sources }} +{{- if or (has "istio-gateway" .Values.sources) (has "istio-virtualservice" .Values.sources) }} - apiGroups: ["networking.istio.io"] resources: ["gateways"] verbs: ["get","watch","list"]