From c5d3864b544368a85ac3de95cbb58234fefc81f1 Mon Sep 17 00:00:00 2001
From: "stu126940@mail.uni-kiel.de" <stu126940@mail.uni-kiel.de>
Date: Fri, 4 Jun 2021 10:52:18 +0200
Subject: [PATCH] Add leases to theodolite role

---
 execution/helm/templates/theodolite/role.yaml      | 12 ++++++++++++
 execution/infrastructure/kubernetes/rbac/role.yaml | 13 +++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/execution/helm/templates/theodolite/role.yaml b/execution/helm/templates/theodolite/role.yaml
index ee699a5b8..f74960e7b 100644
--- a/execution/helm/templates/theodolite/role.yaml
+++ b/execution/helm/templates/theodolite/role.yaml
@@ -56,5 +56,17 @@ rules:
     - watch
     - update
     - patch
+  - apiGroups:
+    - coordination.k8s.io
+    resources:
+    - leases
+    verbs:
+    - delete
+    - list
+    - get
+    - create
+    - watch
+    - update
+    - patch
   {{- end }}
 {{- end }}
\ No newline at end of file
diff --git a/execution/infrastructure/kubernetes/rbac/role.yaml b/execution/infrastructure/kubernetes/rbac/role.yaml
index a21fd554f..5c7357ce4 100644
--- a/execution/infrastructure/kubernetes/rbac/role.yaml
+++ b/execution/infrastructure/kubernetes/rbac/role.yaml
@@ -52,4 +52,17 @@ rules:
     - watch
     - update
     - patch
+  - apiGroups:
+    - coordination.k8s.io
+    resources:
+    - leases
+    verbs:
+    - delete
+    - list
+    - get
+    - create
+    - watch
+    - update
+    - patch
+
     
-- 
GitLab