diff --git a/client.go b/client.go index 020021b..6dd5b89 100644 --- a/client.go +++ b/client.go @@ -943,6 +943,7 @@ func mergeUpgradeOptions(chartSpec *ChartSpec, upgradeOptions *action.Upgrade) { upgradeOptions.Force = chartSpec.Force upgradeOptions.ResetValues = chartSpec.ResetValues upgradeOptions.ReuseValues = chartSpec.ReuseValues + upgradeOptions.ResetThenReuseValues = chartSpec.ResetThenReuseValues upgradeOptions.Recreate = chartSpec.Recreate upgradeOptions.MaxHistory = chartSpec.MaxHistory upgradeOptions.Atomic = chartSpec.Atomic diff --git a/types.go b/types.go index b5999ff..2256b00 100644 --- a/types.go +++ b/types.go @@ -176,6 +176,9 @@ type ChartSpec struct { // ReuseValues indicates whether to reuse the values.yaml file during installation. // +optional ReuseValues bool `json:"reuseValues,omitempty"` + // ResetThenReuseValues will reset the values to the chart's built-ins then merge with user's last supplied values. + // +optional + ResetThenReuseValues bool // Recreate indicates whether to recreate the release if it already exists. // +optional Recreate bool `json:"recreate,omitempty"`