Skip to content

Commit

Permalink
Fail early on e2e setup failure (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmprusi authored May 16, 2023
1 parent 0e2ddd1 commit 8661cc6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/install.tpl.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'

operator_controller_manifest=$MANIFEST

Expand All @@ -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

Expand All @@ -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}"
Expand Down

0 comments on commit 8661cc6

Please sign in to comment.