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

e2e: script for removing orphaned e2e clusters #9797

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

notnoop
Copy link
Contributor

@notnoop notnoop commented Jan 13, 2021

Adds a script for cleaning up e2e clusters, the brute force way without needing the terraform state file.

This script is handy when an e2e job fails in mysterious ways without cleaning, or an engineer spin up a dev cluster and left it unattended for a long time.

It has been useful for me while I was working on getting e2e infrastructure running on circleci.

@notnoop notnoop requested a review from tgross January 13, 2021 15:29

set -e

LOCAL_NAME=$1
Copy link
Member

Choose a reason for hiding this comment

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

This script is pretty destructive, so we should probably enforce that it's being passed with this argument. Some of these functions would result in destroying all instances of the component, because they have "contains" filters.

I'd also love to get a "I'm gonna destroy X, are you sure?" confirmation too, but that's maybe paranoid. 😀

Base automatically changed from master to main March 8, 2021 19:25
@hashicorp-cla
Copy link

CLA assistant check

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement

Learn more about why HashiCorp requires a CLA and what the CLA includes


Mahmood Ali seems not to be a GitHub user.
You need a GitHub account to be able to sign the CLA. If you already have a GitHub account, please add the email address used for this commit to your account.

Have you signed the CLA already but the status is still pending? Recheck it.

@tgross tgross added the stage/needs-rebase This PR needs to be rebased on main before it can be backported to pick up new BPA workflows label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/needs-rebase This PR needs to be rebased on main before it can be backported to pick up new BPA workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants