Skip to content

Commit

Permalink
gotohelm: expose GoChart.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseto committed Oct 15, 2024
1 parent 5dbbd20 commit 569ede5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/gotohelm/gochart.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ func (c *GoChart) Render(cfg kube.Config, release helmette.Release, values any)
return c.render(dot)
}

// Metadata returns the parsed [chart.Metadata] describing this chart.
func (c *GoChart) Metadata() chart.Metadata {
return c.metadata
}

// doRender is a helper to catch any panics from renderFunc and convert them to
// errors.
func (c *GoChart) doRender(dot *helmette.Dot) (_ []kube.Object, err error) {
Expand Down

0 comments on commit 569ede5

Please sign in to comment.