From f23a333f59131bc5fc771fd6c490f4197a32ef6e Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 21 Oct 2024 10:13:57 +0200 Subject: [PATCH] fix namespaces creation (#435) Signed-off-by: Andrei Kvapil Signed-off-by: Andrei Kvapil --- packages/core/platform/templates/namespaces.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/platform/templates/namespaces.yaml b/packages/core/platform/templates/namespaces.yaml index c7b174bd..11d00553 100644 --- a/packages/core/platform/templates/namespaces.yaml +++ b/packages/core/platform/templates/namespaces.yaml @@ -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 }}