Interview Prep/GitOps & Argo CD/Secrets, Controller Performance & Recovery

After upgrading Argo CD, applies fail with `strict decoding error: unknown field "spec.sourceHydrator"` or the CRD update fails with `metadata.annotations: Too long`.

AdvancedTroubleshootingSecrets, Controller Performance & Recovery
Answer

Likely causes → The new controller expects newer CRD schemas, but the CRDs were not upgraded (Helm does not upgrade CRDs by default), or they were applied client-side and hit the annotation size limit.

Diagnose → kubectl get crd applications.argoproj.io -o yaml | yq '.metadata.labels' and compare the schema with the release.

Fix → Apply CRDs server-side for the target version:

kubectl apply -k "https://github.com/argoproj/argo-cd/manifests/crds?ref=v3.1.0" \
  --server-side --force-conflicts

With the Helm chart, keep crds.install: true and upgrade the chart, not only the image tags.

Prevent → Upgrade one minor version at a time, read the upgrade notes, and rehearse on a staging Argo CD.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Secrets, Controller Performance & Recovery