Skip to content

Flux Helm Source Quick Fix - HelmRepository Configuration

DodaTech Updated 2026-06-26 1 min read

Flux HelmRepository resource indexes Helm chart repositories for deployment. Misconfigured repository URLs or missing auth cause chart resolution failures. This guide covers the fix.

Quick Fix

Wrong

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: bitnami
spec:
  interval: 1h
  url: https://charts.bitnami.com/bitnami

The issue: missing type: oci for OCI-based Helm repositories (Bitnami moved to OCI). The https URL format does not work for OCI repositories.

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: bitnami
spec:
  interval: 1h
  type: oci
  url: oci://registry-1.docker.io/bitnamicharts
# Expected output after applying the fix
# HelmRepository resource created (OCI type)
# Repository index fetched from OCI registry
# Charts available for HelmRelease
# Status: True (Ready)

Prevention

  • Use type: oci for OCI-based Helm repositories
  • Use type: default for traditional HTTP Helm repositories
  • Configure secretRef for authenticated repositories
  • Set appropriate interval based on chart update frequency
  • Verify repository URL with helm repo add before creating the resource

DodaTech Tools

Doda Browser's Helm repository browser shows available charts and versions. DodaZIP archives repository configurations for disaster recovery. Durga Antivirus Pro validates repository URLs.

FAQ

What is the difference between OCI and default Helm repositories?

OCI repositories store charts in container registries using OCI artifacts. Default repositories use the traditional index.yaml served over HTTP. ||| Can I use a HelmRepository with authentication? Yes, create a Kubernetes secret with credentials and reference it via spec.secretRef.name. Supported auth types include basic auth, token, and Docker config. ||| How do I verify the HelmRepository is working? Check kubectl get helmrepository <name> and look for Ready: True status. Use kubectl describe helmrepository <name> for detailed error messages.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro