Skip to content

Commit

Permalink
add RBAC fix to namespaces - get, watch, list to each gateway-*route
Browse files Browse the repository at this point in the history
  • Loading branch information
orenlevi111 committed Jan 25, 2024
1 parent 8dd49cc commit b747584
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions charts/external-dns/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,15 @@ rules:
- apiGroups: ["gateway.networking.k8s.io"]
resources: ["gateways"]
verbs: ["get","watch","list"]
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["get","watch","list"]
{{- end }}
{{- if has "gateway-httproute" .Values.sources }}
- apiGroups: ["gateway.networking.k8s.io"]
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"]
Expand Down

0 comments on commit b747584

Please sign in to comment.