From 1ece35e4c559ff16f4799b2928d551cd797132c6 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Wed, 4 May 2022 11:11:51 +0300 Subject: [PATCH] Add leader election required permissions Signed-off-by: Stefan Prodan --- manifests/rbac/controller.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/manifests/rbac/controller.yaml b/manifests/rbac/controller.yaml index 7eb0d7fd..c444c58e 100644 --- a/manifests/rbac/controller.yaml +++ b/manifests/rbac/controller.yaml @@ -36,6 +36,27 @@ rules: verbs: - create - patch +# required by leader election +- apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - "" + resources: + - configmaps/status + verbs: + - get + - update + - patch - apiGroups: - "coordination.k8s.io" resources: