Skip to content

Commit

Permalink
Allow Helm lookup in manifest experiment (#1335)
Browse files Browse the repository at this point in the history
Co-authored-by: sheneska.williams <[email protected]>
  • Loading branch information
omgftw and sheneska authored Nov 5, 2024
1 parent 24ec7ae commit 91a5cd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/1335.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note: enhancement
`resource/helm_release`: enable helm lockup function.
```
2 changes: 2 additions & 0 deletions helm/resource_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 91a5cd1

Please sign in to comment.