mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 07:37:14 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user