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

Reset values flag #602

Merged
merged 6 commits into from Jan 17, 2023
Merged

Reset values flag #602

merged 6 commits into from Jan 17, 2023

Conversation

kkoralsky
Copy link
Contributor

implemented --reset-values flag overriding .helmDefaults.reuseValues=true

as discussed: #593

@kkoralsky
Copy link
Contributor Author

@yxxhero would you mind to take a look at this? We talked about the problem in "discussions" week ago :) Im also open for suggestions if it can be implemented better

@yxxhero
Copy link
Member

yxxhero commented Dec 30, 2022

I will review as soon as I can.

@yxxhero
Copy link
Member

yxxhero commented Jan 14, 2023

@kkoralsky when has --reset-vaules and --reuse-values in same. what will happen?

@yxxhero
Copy link
Member

yxxhero commented Jan 14, 2023

@kkoralsky we can follow the behavior of helm.

pkg/state/state.go Outdated Show resolved Hide resolved
pkg/state/state.go Outdated Show resolved Hide resolved
Copy link
Contributor Author

@kkoralsky kkoralsky left a comment

Choose a reason for hiding this comment

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

If both --reset-values and --reuse-values are given, we use reset "values control mode" - this is also how helm beahaves

pkg/config/sync.go Show resolved Hide resolved
pkg/state/state.go Outdated Show resolved Hide resolved
pkg/state/state.go Outdated Show resolved Hide resolved
pkg/state/state_test.go Show resolved Hide resolved
@yxxhero
Copy link
Member

yxxhero commented Jan 14, 2023

@kkoralsky please fix DCO issue.

@yxxhero
Copy link
Member

yxxhero commented Jan 14, 2023

@mumoshu I think it's ok. do you have some suggestions?

@yxxhero
Copy link
Member

yxxhero commented Jan 14, 2023

@kkoralsky BTW. please update the docs.

pkg/app/config.go Outdated Show resolved Hide resolved
…true

Signed-off-by: Karol Ossowski <k@koralsky.pl>
Signed-off-by: Karol Ossowski <k@koralsky.pl>
Signed-off-by: Karol Ossowski <k@koralsky.pl>
Signed-off-by: Karol Ossowski <k@koralsky.pl>
…ocessing

Signed-off-by: Karol Ossowski <k@koralsky.pl>
Signed-off-by: Karol Ossowski <k@koralsky.pl>
}

return flags
}
Copy link
Member

Choose a reason for hiding this comment

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

please add unittest for the func. @kkoralsky

@yxxhero
Copy link
Member

yxxhero commented Jan 16, 2023

rest of is LGTM.
@mumoshu WDYT?

Copy link
Contributor

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks a lot for your contribution @kkoralsky and review @yxxhero ☺️

@mumoshu mumoshu merged commit fc634c9 into helmfile:main Jan 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants