From 843a7a5a97152114cda737ae03d7c194640f6fd0 Mon Sep 17 00:00:00 2001 From: Christian Hopf Date: Sat, 17 Aug 2024 09:56:48 +0200 Subject: [PATCH] use coalesce --- charts/sbom-operator/templates/clusterrole.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/sbom-operator/templates/clusterrole.yaml b/charts/sbom-operator/templates/clusterrole.yaml index a570606..f312e9d 100644 --- a/charts/sbom-operator/templates/clusterrole.yaml +++ b/charts/sbom-operator/templates/clusterrole.yaml @@ -18,7 +18,7 @@ rules: - secrets verbs: - get -{{- if and .Values.args (hasKey .Values.args "targets") .Values.args.targets (contains "configmap" .Values.args.targets) }} +{{- if and .Values.args (hasKey .Values.args "targets") .Values.args.targets (contains "configmap" (coalesce .Values.args.targets "")) }} - apiGroups: - "" resources: