From a5baa6e6bd0f3a1dbce9d4c785fb9ab1374c6b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de> Date: Fri, 9 Apr 2021 20:13:04 +0200 Subject: [PATCH] Require some rules only when operator is installed These are the rules for: * executions.theodolite.com * benchmarks.theodolite.com --- execution/helm/templates/theodolite/role.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/execution/helm/templates/theodolite/role.yaml b/execution/helm/templates/theodolite/role.yaml index 84133c1b7..73e3e5098 100644 --- a/execution/helm/templates/theodolite/role.yaml +++ b/execution/helm/templates/theodolite/role.yaml @@ -42,6 +42,7 @@ rules: - delete - list - create + {{- if .Values.operator.enabled -}} - apiGroups: - theodolite.com resources: @@ -55,4 +56,5 @@ rules: - watch - update - patch + {{- end }} {{- end }} \ No newline at end of file -- GitLab