A chart version was overwritten in the registry and two clusters now run different content for "1.4.0". How do you prevent it?
AdvancedScenarioOCI, CI/CD & GitOps
Answer
Situation read → Mutable tags broke the assumption that a version means one content.
What I'd do →
- Enable tag immutability on the registry (ECR
imageTagMutability: IMMUTABLE; GHCR via policy or CI check). - CI checks whether the version exists before pushing (
helm show chart oci://.../shop --version 1.4.0succeeds means fail). - Deploy by digest in sensitive environments.
- Fix: publish 1.4.1 with the intended content and upgrade both clusters.
Why → Immutability is what makes versions meaningful for rollback and audit.
Interview tip → Mention deploying by digest.
More on OCI, CI/CD & GitOps
Design the CI pipeline for an internal Helm chart.IntermediateYour org is moving charts from ChartMuseum to an OCI registry. What changes for consumers?IntermediateHow would you give GitHub Actions push access to ECR for charts without long-lived keys?IntermediateYou are adopting Argo CD for apps currently deployed with `helm upgrade` from CI. How do you migrate?AdvancedArgo CD shows a Helm app permanently OutOfSync even right after a sync. What do you look for?IntermediateHow do you promote a chart version from staging to prod in a GitOps setup?Intermediate