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

destroy command actually checks for empty state #404

Merged
merged 3 commits into from
Mar 21, 2022

Conversation

YrrepNoj
Copy link
Contributor

@YrrepNoj YrrepNoj commented Mar 16, 2022

Description

If a Zarf install didn't complete successfully we might not have a ZarfState in the cluster to parse while doing a zarf destroy --confirm. In cases like this the destroy command checks if there is no ZarfState to figure what to do. We recently stopped automatically adding a DistroIsUnknown string to the Distro field in the ZarfState but the destroy logic is still checking and expecting that string value.

Related Issue

Fixes #403
Related to #371

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@YrrepNoj
Copy link
Contributor Author

Shamelessly added a mostly unrelated commit to jump-start the test pipeline still GitHub went down yesterday and never started them.

@RothAndrew RothAndrew enabled auto-merge (squash) March 21, 2022 16:36
@RothAndrew RothAndrew merged commit e785ec8 into master Mar 21, 2022
@RothAndrew RothAndrew deleted the 403-destroy-checks-empty-state branch March 21, 2022 16:53
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.

Destroy doesn't actually check for an empty state
2 participants