Skip to content

method to provide credentials to private helm repositories #18101

Open
@cburroughs

Description

@cburroughs

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions