From 353720ebf81d3980e065c3f6927c92768e8d7fb8 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 23:04:33 +0100 Subject: [PATCH] Fix support for empty list --- helm/templates/theodolite/role.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helm/templates/theodolite/role.yaml b/helm/templates/theodolite/role.yaml index 90604a93f..b8d4d2d00 100644 --- a/helm/templates/theodolite/role.yaml +++ b/helm/templates/theodolite/role.yaml @@ -55,7 +55,9 @@ rules: - get - create - update -{{ toYaml .Values.rbac.additionalRules | indent 2 }} + {{- with .Values.rbac.additionalRules }} +{{ toYaml . | indent 2 }} + {{- end }} {{- if .Values.operator.enabled }} - apiGroups: - theodolite.com -- GitLab