From 8661cc6e6c922149fee2ff2a8e29f282a2e426ea Mon Sep 17 00:00:00 2001 From: Joaquim Moreno Prusi Date: Tue, 16 May 2023 14:42:30 +0200 Subject: [PATCH] Fail early on e2e setup failure (#214) --- scripts/install.tpl.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install.tpl.sh b/scripts/install.tpl.sh index 07f236379..e6d4be2a6 100644 --- a/scripts/install.tpl.sh +++ b/scripts/install.tpl.sh @@ -1,4 +1,6 @@ #!/bin/bash +set -euo pipefail +IFS=$'\n\t' operator_controller_manifest=$MANIFEST @@ -22,7 +24,7 @@ if [[ -z "$catalogd_version" || -z "$cert_mgr_version" || -z "$rukpak_version" ] if [[ -z "$rukpak_version" ]]; then err+="rukpak " fi - echo $err + echo "$err" exit 1 fi @@ -42,7 +44,7 @@ kubectl_wait "rukpak-system" "deployment/core" "60s" kubectl_wait "rukpak-system" "deployment/helm-provisioner" "60s" kubectl_wait "rukpak-system" "deployment/rukpak-webhooks" "60s" -kubectl apply -f https://github.com/operator-framework/catalogd/releases/download/${catalogd_version}/catalogd.yaml +kubectl apply -f "https://github.com/operator-framework/catalogd/releases/download/${catalogd_version}/catalogd.yaml" kubectl_wait "catalogd-system" "deployment/catalogd-controller-manager" "60s" kubectl apply -f "${operator_controller_manifest}"