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

🌱 Update install script with debug output #252

Merged
merged 4 commits into from
Jul 26, 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
17 changes: 14 additions & 3 deletions hack/install-tackle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ spec:
sourceNamespace: konveyor-tackle
EOF
# If on MacOS, need to install `brew install coreutils` to get `timeout`
timeout 600s bash -c 'until kubectl get customresourcedefinitions.apiextensions.k8s.io tackles.tackle.konveyor.io; do sleep 30; done'
timeout 600s bash -c 'until kubectl get customresourcedefinitions.apiextensions.k8s.io tackles.tackle.konveyor.io; do sleep 30; done' \
|| kubectl get subscription --namespace konveyor-tackle -o yaml konveyor-operator # Print subscription details when timed out

# Create, and wait for, tackle
kubectl wait \
Expand Down Expand Up @@ -100,12 +101,22 @@ kubectl wait \
--namespace konveyor-tackle \
--for=condition=Successful \
--timeout=600s \
tackles.tackle.konveyor.io/tackle
tackles.tackle.konveyor.io/tackle \
|| kubectl get \
--namespace konveyor-tackle \
-o yaml \
tackles.tackle.konveyor.io/tackle # Print tackle debug when timed out

# Now wait for all the tackle deployments
kubectl wait \
--namespace konveyor-tackle \
--selector="app.kubernetes.io/part-of=tackle" \
--for=condition=Available \
--timeout=600s \
deployments.apps
deployments.apps \
|| kubectl get \
djzager marked this conversation as resolved.
Show resolved Hide resolved
--namespace konveyor-tackle \
--selector="app.kubernetes.io/part-of=tackle" \
--field-selector=status.phase!=Running \
-o yaml \
pods # Print not running tackle pods when timed out