Skip to content

Commit

Permalink
fix: reload Helm chart for each example folder (#6475) (#6480)
Browse files Browse the repository at this point in the history
(cherry picked from commit ed8e351)

Co-authored-by: Panos Koutsovasilis <[email protected]>
  • Loading branch information
mergify[bot] and pkoutsovasilis authored Jan 6, 2025
1 parent f89b7a6 commit ef1462a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -3400,12 +3400,7 @@ func (Helm) RenderExamples() error {
settings := cli.New() // Helm CLI settings
actionConfig := &action.Configuration{}

helmChart, err := loader.Load(helmChartPath)
if err != nil {
return fmt.Errorf("failed to load helm chart: %w", err)
}

err = actionConfig.Init(settings.RESTClientGetter(), "default", "",
err := actionConfig.Init(settings.RESTClientGetter(), "default", "",
func(format string, v ...interface{}) {})
if err != nil {
return fmt.Errorf("failed to init helm action config: %w", err)
Expand All @@ -3422,6 +3417,11 @@ func (Helm) RenderExamples() error {
continue
}

helmChart, err := loader.Load(helmChartPath)
if err != nil {
return fmt.Errorf("failed to load helm chart: %w", err)
}

exampleFullPath := filepath.Join(examplesPath, d.Name())

helmValues := make(map[string]any)
Expand Down

0 comments on commit ef1462a

Please sign in to comment.