Fix argocd-apps CRD install ordering
Summary
- Add Argo CD
Application,ApplicationSet, andAppProjectCRD bootstrap copies to the parent chartcrds/install path so Helm installs those CRDs before renderingargocd-appsresources in the same release. - Keep
upstream.crds.install=trueso the vendored upstreamargo-cdchart still renders/applies its CRD manifests during normal upgrades. - Keep the upstream
argocd-appschart rendering normally instead of maintaining a Big Bang copy of its templates. - Add unit coverage for
argocd-apps.applicationsrendering through the upstream subchart. - Add
scripts/sync-upstream-crds.shand maintenance-guide steps so future upstreamargo-cddependency bumps refresh and check the parentchart/crds/copies.
The hook workaround was tested and is not the best package fix. Helm still needs to resolve the Application kind while processing hook resources, so hook annotations on argocd-apps resources do not reliably solve fresh installs.
A Big Bang umbrella post-renderer is not needed for this MR. Post-renderers operate after Helm has rendered the chart and cannot turn a templated CRD into a pre-render/pre-discovery CRD phase. A larger umbrella split release for argocd-apps would also work architecturally, but it requires separate HelmRelease/source wiring and value migration. This package-local fix keeps the existing values contract and does not modify upstream charts.
The parent chart/crds/ files are rendered from the vendored upstream argo-cd chart tarball. Future dependency updates should run scripts/sync-upstream-crds.sh, and scripts/sync-upstream-crds.sh --check verifies those copies have not drifted from upstream.
Validation
scripts/sync-upstream-crds.sh --checkhelm lint chart/helm unittest chart/ -f 'unittests/*.yaml'cd /Users/mvasquez/repos/bb/bigbang && ./docs/reference/scripts/developer/k3d-dev.sh -a -t argocd309- Big Bang umbrella deployment to k3d-dev with Argo CD enabled and the package pinned to
fix/issue-309-argocd-apps-crd-ordering kubectl get gitrepository argocd -n bigbangconfirmed the fix branch revision3d2e9d05c66a87c01b6b4238d99eea8549621794kubectl get helmrelease argocd -n bigbangconfirmed the Argo CD HelmRelease is Ready after the umbrella/Flux deploymentkubectl get crd applications.argoproj.io applicationsets.argoproj.io appprojects.argoproj.ioconfirmed all Argo CD app CRDs are present with Helm ownership metadatakubectl get application podinfo -n argocdconfirmedpodinfofromargocd-appsisSyncedandHealthy- Argo CD UI confirmed the
podinfoapplication isHealthyandSynced
Supporting Evidence
Local chart validation:
k3d-dev Big Bang umbrella deployment through Flux showing the Argo CD HelmRelease Ready, CRDs present with Helm ownership metadata, and podinfo Synced / Healthy:
Argo CD UI showing the podinfo application from argocd-apps as Healthy and Synced:
Linked issues
Upgrade Notices
Argo CD CRDs now have bootstrap copies in the parent chart crds/ directory. upstream.crds.install remains enabled, so upstream CRD templates are still rendered/applied for upgrades.
Existing CRDs retain the upstream helm.sh/resource-policy: keep behavior.


