From 34b1a3b7a92174b334de47b22a078e72c5e9a63c Mon Sep 17 00:00:00 2001 From: Ashley Wang Date: Wed, 21 Aug 2024 17:07:28 -0400 Subject: [PATCH] dash fix --- codegen/templates/chart/operator-rbac.yamltmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/templates/chart/operator-rbac.yamltmpl b/codegen/templates/chart/operator-rbac.yamltmpl index 0c8b02e2..48b4c682 100644 --- a/codegen/templates/chart/operator-rbac.yamltmpl +++ b/codegen/templates/chart/operator-rbac.yamltmpl @@ -92,7 +92,7 @@ Prefixed with '#' to avoid printing variable values in yaml, per https://github. {{- range $entry := $[[ $operatorVar ]].namespacedRbac }} [[- /* If resources were chosen but no namespaces were chosen, default to restricting those resources to the Release.Namespace. */]] - {{ if and (eq (len $entry.namespaces) 0) (ge (len $entry.resources) 0) }} + {{- if and (eq (len $entry.namespaces) 0) (ge (len $entry.resources) 0) }} {{- set $[[ $operatorVar ]]NsToResources $.Release.Namespace ($entry.resources | mustUniq) }} {{- end }} [[- /* Otherwise, iterate through each of the namespaces and resources listed */]]