From c3c915346d5025d2aabb97740fd22e0177cb4f97 Mon Sep 17 00:00:00 2001 From: ykadowak Date: Mon, 11 Mar 2024 01:51:55 +0000 Subject: [PATCH] Add roles for leader election --- charts/vald/templates/discoverer/clusterrole.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/charts/vald/templates/discoverer/clusterrole.yaml b/charts/vald/templates/discoverer/clusterrole.yaml index e2156198dd0..554c504bbcd 100644 --- a/charts/vald/templates/discoverer/clusterrole.yaml +++ b/charts/vald/templates/discoverer/clusterrole.yaml @@ -47,6 +47,12 @@ rules: - get - list - watch + - apiGroups: + - "" + resources: + - events + verbs: + - create - nonResourceURLs: - /metrics verbs: @@ -67,4 +73,11 @@ rules: - get - list - watch + - apiGroups: + - "coordination.k8s.io" + resources: + - leases + verbs: + - get + - update {{- end }}