feat: Reset values flag (#602)

Ref https://github.com/helmfile/helmfile/discussions/593

* implemented --reset-values flag overriding .helmDefaults.reuseValues=true
* tests for --reset-values flag
* fixed pkg/app tests
* added tests for both reset & reuse flags given
* added appendValuesControlMode method for --reuse/reset-values flag processing
* updated code comments & docs

Signed-off-by: Karol Ossowski <k@koralsky.pl>
This commit is contained in:
koralsky
2023-01-17 09:34:37 +09:00
committed by GitHub
parent c4eb62388b
commit fc634c9ee3
13 changed files with 122 additions and 15 deletions
+4
View File
@@ -146,6 +146,10 @@ func (a diffConfig) ReuseValues() bool {
return a.reuseValues
}
func (a diffConfig) ResetValues() bool {
return !a.reuseValues
}
func TestDiff(t *testing.T) {
type flags struct {
skipNeeds bool