diff --git a/charts/external-dns/Chart.yaml b/charts/external-dns/Chart.yaml index fc0c979f61..199eef681c 100644 --- a/charts/external-dns/Chart.yaml +++ b/charts/external-dns/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: external-dns description: ExternalDNS synchronizes exposed Kubernetes Services and Ingresses with DNS providers. type: application -version: 1.4.0 +version: 1.4.1 appVersion: 0.10.1 keywords: - kubernetes diff --git a/charts/external-dns/templates/clusterrole.yaml b/charts/external-dns/templates/clusterrole.yaml index e46a66dd75..bca96ce1e8 100644 --- a/charts/external-dns/templates/clusterrole.yaml +++ b/charts/external-dns/templates/clusterrole.yaml @@ -15,4 +15,14 @@ rules: - apiGroups: [""] resources: ["nodes"] verbs: ["list","watch"] +{{- if has "istio-gateway" .Values.sources }} + - apiGroups: ["networking.istio.io"] + resources: ["gateways"] + verbs: ["get","watch","list"] +{{- end }} +{{- if has "istio-virtualservice" .Values.sources }} + - apiGroups: ["networking.istio.io"] + resources: ["virtualservices"] + verbs: ["get","watch","list"] +{{- end }} {{- end }}