Skip to content

Commit

Permalink
helm: add RBAC for mgr to create service monitor
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Parent <mathieu.parent@insee.fr>
  • Loading branch information
sathieu committed Dec 10, 2021
1 parent 9299e32 commit ebf9190
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deploy/charts/library/templates/_cluster-role.tpl
Expand Up @@ -71,6 +71,15 @@ rules:
- persistentvolumeclaims
verbs:
- delete
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- get
- list
- create
- update
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
9 changes: 9 additions & 0 deletions deploy/examples/common.yaml
Expand Up @@ -875,6 +875,15 @@ rules:
- persistentvolumeclaims
verbs:
- delete
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- get
- list
- create
- update
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
Expand Down

0 comments on commit ebf9190

Please sign in to comment.