Interview Prep/Helm/Dependencies, Subcharts & Library Charts

How would you handle a dependency that is only available in a private HTTP chart repo in CI?

BeginnerScenarioDependencies, Subcharts & Library Charts
Answer

Situation read → helm dependency build fails without repo configuration and credentials.

What I'd do →

  1. In CI: helm repo add internal https://charts.internal --username "$U" --password "$P" before building.
  2. Isolate Helm config per job (HELM_CONFIG_HOME, HELM_CACHE_HOME in the workspace).
  3. Better: move internal charts to OCI and use helm registry login with short-lived tokens (OIDC to ECR/GHCR).

Why → OCI removes the repo-add step and reuses registry auth you already have for images.

Interview tip → Mention short-lived credentials over static passwords.

All Helm questions Roadmap: Helm

More on Dependencies, Subcharts & Library Charts