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"]