quaint-telephone-89068
01/27/2023, 7:42 PMhelm 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 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.
pantsbuild/pants