From 07d8ee8d28a39906b2838fcf1a7c5f4cfe3b481c Mon Sep 17 00:00:00 2001 From: Andrzej Stencel Date: Mon, 18 Jul 2022 13:50:05 +0200 Subject: [PATCH] fix(chart): add permissions for leases This fixes the error "error retrieving resource lock namespace/7b555970.sumologic.com: leases.coordination.k8s.io "7b555970.sumologic.com" is forbidden" --- .../templates/resources.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/helm/tailing-sidecar-operator/templates/resources.yaml b/helm/tailing-sidecar-operator/templates/resources.yaml index 762a8008..2a0e07b2 100644 --- a/helm/tailing-sidecar-operator/templates/resources.yaml +++ b/helm/tailing-sidecar-operator/templates/resources.yaml @@ -193,6 +193,22 @@ rules: verbs: - create - patch +- apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - create +- apiGroups: + - coordination.k8s.io + resourceNames: + - 7b555970.sumologic.com + resources: + - leases + verbs: + - get + - list + - update --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole