From 91a5cd10559ccec23a1ba98f7f7560bc4f08f12f Mon Sep 17 00:00:00 2001 From: Josh Mullins Date: Tue, 5 Nov 2024 13:41:59 -0500 Subject: [PATCH] Allow Helm lookup in manifest experiment (#1335) Co-authored-by: sheneska.williams --- .changelog/1335.txt | 3 +++ helm/resource_release.go | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 .changelog/1335.txt 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)