You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to deploy a chart with external dependencies defined in its chart.yaml. When setting DependencyUpdate: true in the chart spec, the following nil pointer error occurs:
The deployed chart is the official gitea helm chart, which has several references to the bitnami repository.
Cause and a quick fix
The cause of this error seems to be the initialzation of downloader.Manager in client.go:285, where Out is not set. Manager.Out is used in the standard Helm package for writing simple output when checking for dependencies. I circumvented the issue by declaring a bytes.Buffer variable and setting Manager.Out to it, though I suspect one would want an implementation-specific io.writer in that case.
The text was updated successfully, but these errors were encountered:
Problem
I am trying to deploy a chart with external dependencies defined in its chart.yaml. When setting DependencyUpdate: true in the chart spec, the following nil pointer error occurs:
Context
go.mod requirements:
The deployed chart is the official gitea helm chart, which has several references to the bitnami repository.
Cause and a quick fix
The cause of this error seems to be the initialzation of downloader.Manager in client.go:285, where Out is not set. Manager.Out is used in the standard Helm package for writing simple output when checking for dependencies. I circumvented the issue by declaring a bytes.Buffer variable and setting Manager.Out to it, though I suspect one would want an implementation-specific io.writer in that case.
The text was updated successfully, but these errors were encountered: