Open
Description
Is your feature request related to a problem? Please describe.
I have a helm chart in pants, and I'd like to depend on another helm chart in a private chart repository. The chart works fine with helm repo add
(showing up in ~/.config/helm/repositories.yaml
), but trying to use a chart from that repository with causes pants to fail with 401 Unauthorized
.
Looking in the sandbox, I can see that we set HELM_CONFIG_HOME=__config
which is empty:
__config/
0 directories, 0 files
So it makes sense that it is unauthorized as no authentication is being provided.
Describe the solution you'd like
I like a way to have pants use credentials to access private helm repositories.
Describe alternatives you've considered
- helm doesn't support
.netrc
files, and I presume pants's sandbox would thwart that anyway Feature request: helm - allow the use of .netrc as an authentication alternative in add repo helm/helm#9586 - Embedding the username/password in the url given to pants, which is a non-starter for config that gets checked in.
Additional context
- The docs have a section on publishign charts, https://www.pantsbuild.org/docs/helm-overview#publishing-helm-charts and I admit that makes me feel like I'm missing something because how would publishing work without authentication?
- Sealing away the
~/.config/helm
feels correct in some sense, but is also inconsistent with how pant treats docker and kubectl.
Activity