Skip to content

Commit

Permalink
When Operator manages webhooks, Galley and Sidecar Injector are depri…
Browse files Browse the repository at this point in the history
…vileged (#18029)
  • Loading branch information
lei-tang authored and istio-testing committed Oct 18, 2019
1 parent acac632 commit 156d828
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -26,9 +26,11 @@ rules:
"security.istio.io"]
resources: ["*/status"]
verbs: ["update"]
{{- if not .Values.global.operatorManageWebhooks }}
- apiGroups: ["admissionregistration.k8s.io"]
resources: ["validatingwebhookconfigurations"]
verbs: ["*"]
{{- end }}
- apiGroups: ["extensions","apps"]
resources: ["deployments"]
resourceNames: ["istio-galley"]
Expand Down
Expand Up @@ -12,6 +12,8 @@ rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "list", "watch"]
{{- if not .Values.global.operatorManageWebhooks }}
- apiGroups: ["admissionregistration.k8s.io"]
resources: ["mutatingwebhookconfigurations"]
verbs: ["get", "list", "watch", "patch"]
{{- end }}

0 comments on commit 156d828

Please sign in to comment.