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

Allow script to continue deleting other resources #491

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

gavinnhh
Copy link
Contributor

@gavinnhh gavinnhh commented Mar 3, 2025

Allow script to continue deleting other resources even if delete cluster failed.
Also add to wait for cluster deletion.

Issue #, if available:

Cluster teardown in tekton pipeline exit early due to cluster not found and hence never reached to delete VPC and other resources. Cluster delete step should not exit early or block the entire teardown workflow.

Description of changes:
Add set +e to allow the script to continue execution even if a command fails.
Add wait command to wait for cluster deletion in case VPC stack deletion fail due to resources like subnet still attached to cluster.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@mengqiy mengqiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hakuna-matatah hakuna-matatah merged commit f27971f into awslabs:main Mar 4, 2025
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants