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

Refactor zarf destroy logic #2275

Open
Racer159 opened this issue Jan 31, 2024 · 0 comments
Open

Refactor zarf destroy logic #2275

Racer159 opened this issue Jan 31, 2024 · 0 comments

Comments

@Racer159
Copy link
Contributor

Describe what should be investigated or refactored

Currently zarf destroy uses bespoke logic that doesn't match up with how zarf package remove functions. These two should be brought closer together so that both function similarly.

Links to any relevant code

https://github.com/defenseunicorns/zarf/blob/main/src/cmd/destroy.go#L46

Additional context

This causes some of this logic to be poorly tested (Related to #2268)

Racer159 added a commit that referenced this issue Jan 31, 2024
## Description

This fixes ApplianceMode not being set and not triggering destroy
scripts.

## Related Issue

Fixes #2268
Relates to #2275 

## Type of change

- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [X] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow)
followed
daniel-palmer-gu pushed a commit to daniel-palmer-gu/zarf that referenced this issue Feb 3, 2024
## Description

This fixes ApplianceMode not being set and not triggering destroy
scripts.

## Related Issue

Fixes zarf-dev#2268
Relates to zarf-dev#2275 

## Type of change

- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [X] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow)
followed
@Noxsios Noxsios moved this to Backlog in Zarf (old) Mar 8, 2024
@salaxander salaxander added this to Zarf Jul 22, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Zarf Jul 22, 2024
@salaxander salaxander removed the status in Zarf Jul 22, 2024
@salaxander salaxander moved this to Triage in Zarf Sep 10, 2024
@AustinAbro321 AustinAbro321 moved this from Triage to Backlog in Zarf Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants