fix namespaces creation (#435)

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
Andrei Kvapil
2024-10-21 10:13:57 +02:00
committed by GitHub
parent bf10aa2b83
commit f23a333f59

View File

@@ -9,7 +9,7 @@
{{- range $x := $bundle.releases }}
{{- if not (hasKey $namespaces $x.namespace) }}
{{- if not (has $x.name $disabledComponents) }}
{{- if and ($x.optional) (has $x.name $enabledComponents) }}
{{- if or (not $x.optional) (and ($x.optional) (has $x.name $enabledComponents)) }}
{{- $_ := set $namespaces $x.namespace false }}
{{- end }}
{{- end }}