Skip to content

Commit

Permalink
Add Istio permissions to cluster role
Browse files Browse the repository at this point in the history
  • Loading branch information
haines committed Nov 2, 2021
1 parent 4c66715 commit e46c48f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/external-dns/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions charts/external-dns/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit e46c48f

Please sign in to comment.