Skip to content

Commit

Permalink
Merge pull request #2255 from cbron/eng-5011-backport
Browse files Browse the repository at this point in the history
[0.20] fix(helm): Do not download helm if not needed
  • Loading branch information
cbron authored Oct 31, 2024
2 parents b375fe1 + 4c19189 commit 7808698
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/controllers/deploy/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ func RegisterInitManifestsController(controllerCtx *config.ControllerContext) er
return err
}

helmBinaryPath, err := helmdownloader.GetHelmBinaryPath(controllerCtx.Context, log.GetInstance())
if err != nil {
return err
var helmBinaryPath string
if controllerCtx != nil && controllerCtx.Config != nil && len(controllerCtx.Config.Experimental.Deploy.VCluster.Helm) > 0 {
helmBinaryPath, err = helmdownloader.GetHelmBinaryPath(controllerCtx.Context, log.GetInstance())
if err != nil {
return err
}
}

controller := &Deployer{
Expand Down

0 comments on commit 7808698

Please sign in to comment.