From 3f5bb1727681d110c5d7a37e33965f9d1324c14d Mon Sep 17 00:00:00 2001
From: "stu126940@mail.uni-kiel.de" <stu126940@mail.uni-kiel.de>
Date: Mon, 7 Jun 2021 16:00:29 +0200
Subject: [PATCH] restrict permissions for leases.coordination.k8s.io

---
 execution/helm/templates/theodolite/role.yaml      | 3 ---
 execution/infrastructure/kubernetes/rbac/role.yaml | 7 +------
 2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/execution/helm/templates/theodolite/role.yaml b/execution/helm/templates/theodolite/role.yaml
index f74960e7b..630a84c04 100644
--- a/execution/helm/templates/theodolite/role.yaml
+++ b/execution/helm/templates/theodolite/role.yaml
@@ -62,11 +62,8 @@ rules:
     - 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 5c7357ce4..e45814eed 100644
--- a/execution/infrastructure/kubernetes/rbac/role.yaml
+++ b/execution/infrastructure/kubernetes/rbac/role.yaml
@@ -58,11 +58,6 @@ rules:
     - leases
     verbs:
     - delete
-    - list
     - get
     - create
-    - watch
-    - update
-    - patch
-
-    
+    - update
\ No newline at end of file
-- 
GitLab