From ebf9190f5caeb31b51b76ca7a0471ab0dada9c41 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Fri, 10 Dec 2021 15:31:09 +0100 Subject: [PATCH] helm: add RBAC for mgr to create service monitor Signed-off-by: Mathieu Parent --- deploy/charts/library/templates/_cluster-role.tpl | 9 +++++++++ deploy/examples/common.yaml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/deploy/charts/library/templates/_cluster-role.tpl b/deploy/charts/library/templates/_cluster-role.tpl index 06b61439c84c3..3b5cd76010da8 100644 --- a/deploy/charts/library/templates/_cluster-role.tpl +++ b/deploy/charts/library/templates/_cluster-role.tpl @@ -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 diff --git a/deploy/examples/common.yaml b/deploy/examples/common.yaml index 6fae3544d47f8..5357bbdc3a9f5 100644 --- a/deploy/examples/common.yaml +++ b/deploy/examples/common.yaml @@ -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