Skip to content

Commit

Permalink
Fix rbac for webhooks
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
  • Loading branch information
AleksZimin committed Feb 21, 2024
1 parent b2f5b85 commit 6ed5003
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions templates/webhooks/rbac-for-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,21 @@ metadata:
name: d8:{{ .Chart.Name }}:webhooks
{{- include "helm_lib_module_labels" (list . (dict "app" "webhooks")) | nindent 2 }}
rules:
- verbs:
- get
- list
- watch
apiGroups:
- storage.deckhouse.io
resources:
- drbdstorageclasses
- verbs:
- get
- list
apiGroups:
- apiGroups:
- ""
resources:
- nodes
- verbs:
verbs:
- get
apiGroups:
- ""
resources:
- pods
- persistentvolumeclaims
- persistentvolumes
- apiGroups:
- storage.k8s.io
verbs:
- get
resources:
- storageclasses

---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
Expand Down

0 comments on commit 6ed5003

Please sign in to comment.