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

Do not delete untracked releases if the target flag is set. #248

Merged
merged 1 commit into from
Jun 21, 2019

Conversation

fmotrifork
Copy link
Contributor

The new -target flag does not ignore untracked releases, even when specifically stating which release we are targeting.

Releases that are not specified by a -target flag is now also ignored.

I have added tests for the -target flag behaviour defined in the decision_maker.go file, but I am unfortunately not able to write a test for -target flag for untracked releases, in the way the code is structured today.

I was thinking that maybe the func cleanUntrackedReleases() in helm_helper should actually be a part of the decide(r,s) func so that all decisions are made when building the plan?

@fmotrifork
Copy link
Contributor Author

@sami-alajrami Do you have a minute to look at this PR? 🙂

@sami-alajrami
Copy link
Contributor

@fmotrifork apologies it took so long to get around it. Thank you for the contribution!

@sami-alajrami sami-alajrami merged commit 8e24759 into Praqma:master Jun 21, 2019
mkubaczyk pushed a commit that referenced this pull request Aug 18, 2023
Do not delete untracked releases if the target flag is set.
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.

2 participants