Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 fix broken trap when installing konveyor #282

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions hack/install-konveyor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ debug() {
done
exit 1
}
trap 'debug' EXIT
trap 'debug' ERR

run_bundle() {
kubectl auth can-i create namespace --all-namespaces
Expand All @@ -68,8 +68,13 @@ run_bundle() {

install_tackle() {
echo "Waiting for the Tackle CRD to become available"
kubectl wait --namespace "${NAMESPACE}" --for=condition=established \
customresourcedefinitions.apiextensions.k8s.io/tackles.tackle.konveyor.io
kubectl wait --namespace "${NAMESPACE}" --for=condition=established customresourcedefinitions.apiextensions.k8s.io/tackles.tackle.konveyor.io

echo "Waiting for the Tackle Operator to exist"
timeout 2m bash -c "until kubectl --namespace ${NAMESPACE} get deployment/tackle-operator; do sleep 10; done"

echo "Waiting for the Tackle Operator to become available"
kubectl rollout status --namespace "${NAMESPACE}" -w deployment/tackle-operator --timeout=600s

if [ -n "${TACKLE_CR}" ]; then
echo "${TACKLE_CR}" | kubectl apply --namespace "${NAMESPACE}" -f -
Expand Down
Loading