From 2b41ab16de33fa421aeb7622cda4511d55a61e5c Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Thu, 28 May 2026 10:44:29 -0400 Subject: [PATCH] fix: yq doesn't have a if-then-else --- scripts/gen_manifests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_manifests.sh b/scripts/gen_manifests.sh index 76616c86..e2756bfe 100755 --- a/scripts/gen_manifests.sh +++ b/scripts/gen_manifests.sh @@ -72,7 +72,7 @@ apply_rhdh_manifest_cleanup() { .spec.podTemplate.container.env |= ( (. // []) | map(select(.name != "GHTOKEN")) ) - | (if .spec.podTemplate.container.env == [] then del(.spec.podTemplate.container.env) else . end) + | del(.spec.podTemplate.container.env | select(length == 0)) ' "${SONATAFLOW_CR}" rm -f manifests/*secret*.yaml cleanup_generated_manifests