Skip to content

Commit

Permalink
v2.13.1 (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhouston authored Apr 15, 2024
1 parent 6e7a352 commit 8d8f050
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.13.1 (Apr 15, 2024)

HOTFIX:

* `helm_release`: Fix regression causing errors at plan time.

## 2.13.0 (Apr 4, 2024)

BUG FIXES:
Expand Down
7 changes: 3 additions & 4 deletions helm/resource_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,6 @@ func resourceReleaseCreate(ctx context.Context, d *schema.ResourceData, meta int
}

pr, err := postrender.NewExec(cmd, args...)

if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -744,7 +743,6 @@ func resourceReleaseUpdate(ctx context.Context, d *schema.ResourceData, meta int
}

pr, err := postrender.NewExec(cmd, args...)

if err != nil {
d.Partial(true)
return diag.FromErr(err)
Expand Down Expand Up @@ -866,7 +864,8 @@ func resourceDiff(ctx context.Context, d *schema.ResourceDiff, meta interface{})
// Get Chart metadata, if we fail - we're done
chart, path, err := getChart(d, meta.(*Meta), chartName, cpo)
if err != nil {
return err
debug("resourceDiff: getChart failed: %v", err)
return nil
}
debug("%s Got chart", logID)

Expand Down Expand Up @@ -1164,7 +1163,7 @@ func getVersion(d resourceGetter, m *Meta) (version string) {
}

func getChart(d resourceGetter, m *Meta, name string, cpo *action.ChartPathOptions) (*chart.Chart, string, error) {
//Load function blows up if accessed concurrently
// Load function blows up if accessed concurrently
m.Lock()
defer m.Unlock()

Expand Down

0 comments on commit 8d8f050

Please sign in to comment.