How do you pass values to a Helm chart from a separate Git repo in Argo CD?
IntermediateConceptSchema, Helmfile, Argo CD & Secrets
Answer
Use multiple sources with a ref, so the chart comes from a registry and values from your config repo:
spec:
sources:
- repoURL: 123456789012.dkr.ecr.ap-south-1.amazonaws.com/charts
chart: shop
targetRevision: 1.4.0
helm:
releaseName: shop
valueFiles:
- $values/envs/prod/shop-values.yaml
- repoURL: https://github.com/devopsshack/platform-config.git
targetRevision: main
ref: values
This keeps chart releases and environment config versioned independently, and an ApplicationSet can generate one Application per environment.
More on Schema, Helmfile, Argo CD & Secrets
When is `values.schema.json` validated, and can it be skipped?IntermediateHow do you express "password is required only when the internal database is enabled" in a schema?AdvancedWhat is Helmfile?BeginnerShow a realistic `helmfile.yaml`.IntermediateWhat is the difference between `helmfile sync` and `helmfile apply`?IntermediateHow does Argo CD deploy a Helm chart?Advanced