feat(argocd): let Kustomize inflate Helm charts #86

Merged
ivuorinen merged 1 commit from ivuorinen/feat/argocd-kustomize-helm into main 2026-10-07 01:25:44 +00:00 AGit
Owner

Sets kustomize.buildOptions: --enable-helm in argocd-cm, so a Kustomization
can inflate a Helm chart with helmCharts. ArgoCD runs kustomize build
without that flag unless argocd-cm sets it, and has no per-Application
switch.

This is the first of two PRs moving Longhorn under ArgoCD, and it has to be
merged and synced first: "feat: manage Longhorn with an ArgoCD Application"
adds gitops/apps/longhorn/, which inflates the Longhorn chart this way so its
patches can annotate objects the chart's values cannot reach. Merged first,
argocd-config applies the key before the longhorn Application is ever
rendered; merged together, that Application would report a ComparisonError
until the next refresh.

No other Application uses Kustomize, so this changes nothing else. ArgoCD
reads kustomize.buildOptions from its cached argocd-cm on every comparison
(util/settings/settings.go GetKustomizeSettings, called per comparison in
controller/state.go), so no restart is needed. After merging, confirm
argocd-config is Synced before merging the Longhorn PR.

Sets kustomize.buildOptions: --enable-helm in argocd-cm, so a Kustomization can inflate a Helm chart with helmCharts. ArgoCD runs `kustomize build` without that flag unless argocd-cm sets it, and has no per-Application switch. This is the first of two PRs moving Longhorn under ArgoCD, and it has to be merged and synced first: "feat: manage Longhorn with an ArgoCD Application" adds gitops/apps/longhorn/, which inflates the Longhorn chart this way so its patches can annotate objects the chart's values cannot reach. Merged first, argocd-config applies the key before the longhorn Application is ever rendered; merged together, that Application would report a ComparisonError until the next refresh. No other Application uses Kustomize, so this changes nothing else. ArgoCD reads kustomize.buildOptions from its cached argocd-cm on every comparison (util/settings/settings.go GetKustomizeSettings, called per comparison in controller/state.go), so no restart is needed. After merging, confirm argocd-config is Synced before merging the Longhorn PR.
feat(argocd): let Kustomize inflate Helm charts
All checks were successful
validate / render (pull_request) Successful in 2m31s
validate / hooks (pull_request) Successful in 4m30s
8b26e0f21c
Sets kustomize.buildOptions: --enable-helm in argocd-cm, so a Kustomization
can inflate a Helm chart with helmCharts. ArgoCD runs `kustomize build`
without that flag unless argocd-cm sets it, and has no per-Application
switch.

This is the first of two PRs moving Longhorn under ArgoCD, and it has to be
merged and synced first: "feat: manage Longhorn with an ArgoCD Application"
adds gitops/apps/longhorn/, which inflates the Longhorn chart this way so its
patches can annotate objects the chart's values cannot reach. Merged first,
argocd-config applies the key before the longhorn Application is ever
rendered; merged together, that Application would report a ComparisonError
until the next refresh.

No other Application uses Kustomize, so this changes nothing else. ArgoCD
reads kustomize.buildOptions from its cached argocd-cm on every comparison
(util/settings/settings.go GetKustomizeSettings, called per comparison in
controller/state.go), so no restart is needed. After merging, confirm
argocd-config is Synced before merging the Longhorn PR.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ivuorinen/turingpi-cluster!86
No description provided.