diff --git a/.changelog/1335.txt b/.changelog/1335.txt new file mode 100644 index 000000000..5e41e579e --- /dev/null +++ b/.changelog/1335.txt @@ -0,0 +1,3 @@ +```release-note: enhancement +`resource/helm_release`: enable helm lockup function. +``` \ No newline at end of file diff --git a/helm/resource_release.go b/helm/resource_release.go index 1cd41468d..cba931910 100644 --- a/helm/resource_release.go +++ b/helm/resource_release.go @@ -1018,6 +1018,7 @@ func resourceDiff(ctx context.Context, d *schema.ResourceDiff, meta interface{}) install := action.NewInstall(actionConfig) install.ChartPathOptions = *cpo install.DryRun = true + install.DryRunOption = "server" install.DisableHooks = d.Get("disable_webhooks").(bool) install.Wait = d.Get("wait").(bool) install.WaitForJobs = d.Get("wait_for_jobs").(bool) @@ -1084,6 +1085,7 @@ func resourceDiff(ctx context.Context, d *schema.ResourceDiff, meta interface{}) upgrade.Timeout = time.Duration(d.Get("timeout").(int)) * time.Second upgrade.Wait = d.Get("wait").(bool) upgrade.DryRun = true // do not apply changes + upgrade.DryRunOption = "server" upgrade.DisableHooks = d.Get("disable_webhooks").(bool) upgrade.Atomic = d.Get("atomic").(bool) upgrade.SubNotes = d.Get("render_subchart_notes").(bool)