Interview Prep/Helm/Hooks, Tests, GitOps & Secrets

Argo CD fails with `Error: failed to fetch chart: ... oci://... : not found` while `helm pull` works locally.

AdvancedTroubleshootingHooks, Tests, GitOps & Secrets
Answer

Likely causes → Argo CD expects OCI Helm repoURL without the oci:// scheme (123456789012.dkr.ecr.ap-south-1.amazonaws.com/charts) and the repo credential registered with enableOCI: true; or ECR tokens expired in the repo secret.

Diagnose → argocd repo list; inspect the Application source.

Fix → Correct repoURL and chart; register the repo as OCI; refresh ECR credentials automatically (a CronJob or an ECR credential helper, or IRSA-based integration).

Prevent → Manage Argo CD repo secrets declaratively with automated token refresh.

All Helm questions Roadmap: Helm

More on Hooks, Tests, GitOps & Secrets