Helm in Depth — From Charts to a Platform Library›07 · Helm with Argo CD

Lesson 07 of 10 · Delivery and operations

Helm with Argo CD

How Helm behaves when Argo CD deploys it: Argo CD renders charts itself (so helm list shows nothing), values come from Git through single- or multi-source Applications, ApplicationSets give each cluster its own values, and some chart habits cause permanent drift.

Advanced
Key wordsArgo CDHelm sourcehelm templatevalueFilesmulti-source ApplicationApplicationSetchart version pinningRenovatedriftrandAlphaNumlookupsync hooksgit revert

Argo CD renders, Helm doesn't install

When an Argo CD Application points at a Helm chart, Argo CD runs the equivalent of helm template and applies the result. Consequences:

  • No Helm release exists: helm list, helm history and helm rollback don't apply.
  • Rollback is git revert of the change in Git; Argo CD syncs the previous state.
  • Argo CD's own diff and health views are what you use to inspect the release.

Instead of the chef (Helm) cooking and keeping his own notebook, the head cook (Argo CD) reads the recipe, cooks it himself and keeps the official kitchen log. To undo a dish, you change the menu (Git), not the chef's notebook.

Where values come from

Chart and values in the same Git repository:

spec:
  source:
    repoURL: https://git.example.com/platform/apps.git
    path: charts/orders
    targetRevision: main
    helm:
      valueFiles: [ values/base.yaml, values/prod.yaml ]

Remote chart, values from your Git repository (multi-source Application):

spec:
  sources:
  - repoURL: https://prometheus-community.github.io/helm-charts
    chart: prometheus
    targetRevision: 25.27.0
    helm:
      valueFiles: [ $values/monitoring/prometheus/prod.yaml ]
  - repoURL: https://git.example.com/platform/config.git
    targetRevision: main
    ref: values

One chart, every cluster: ApplicationSets

A clusters generator gives each cluster its own Application, with values chosen from the cluster's labels:

template:
  spec:
    source:
      repoURL: https://git.example.com/platform/apps.git
      path: charts/orders
      helm:
        valueFiles:
        - values/base.yaml
        - 'values/ring-{{ index .metadata.labels "fleet.example.io/ring" }}.yaml'

Chart habits that break GitOps

  • Random values (randAlphaNum, uuidv4) and time (now): different output every render, so permanent drift. Reference existing Secrets instead.
  • lookup: returns nothing when Argo CD renders, so output differs from helm install.
  • Hooks: mapped to Argo CD sync hooks; check that the hooks you rely on have an equivalent.
  • Floating versions (targetRevision: "*" or latest images): changes without a commit. Pin versions; bump with pull requests.

Upgrading charts safely

  1. Renovate (or a similar bot) opens a pull request bumping targetRevision.
  2. Review the chart's release notes and the rendered diff.
  3. Merge; the change rolls out ring by ring through progressive syncs.
  4. If it misbehaves, git revert.

Try it

Create an Argo CD Application for the orders chart from Git with a values/prod.yaml. Run helm list -A (nothing) and argocd app manifests orders. Then add a value generated with randAlphaNum to a ConfigMap template, sync, and watch the app stay OutOfSync. Remove it.

Recap

  • Argo CD renders charts and owns the resources; rollback means git revert.
  • Supply values from Git (single or multi-source); ApplicationSets choose values per cluster label.
  • Avoid random, time-based and lookup output; pin and bump chart versions through pull requests.

This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.