From 66c39138f582346112881e210ee5c6565b10145b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de>
Date: Mon, 21 Mar 2022 22:55:55 +0100
Subject: [PATCH] Add Helm option to add further rules (fix #363)

---
 helm/templates/theodolite/role.yaml | 1 +
 helm/values.yaml                    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/helm/templates/theodolite/role.yaml b/helm/templates/theodolite/role.yaml
index 8b3961a33..90604a93f 100644
--- a/helm/templates/theodolite/role.yaml
+++ b/helm/templates/theodolite/role.yaml
@@ -55,6 +55,7 @@ rules:
     - get
     - create
     - update
+{{ toYaml .Values.rbac.additionalRules | indent 2 }}
   {{- if .Values.operator.enabled }}
   - apiGroups:
     - theodolite.com
diff --git a/helm/values.yaml b/helm/values.yaml
index 188332ef1..007e069e0 100644
--- a/helm/values.yaml
+++ b/helm/values.yaml
@@ -341,6 +341,7 @@ serviceAccount:
 
 rbac:
   create: true
+  additionalRules: []
 
 randomScheduler:
   enabled: true
-- 
GitLab