Design the CI pipeline for an internal Helm chart.
IntermediateScenarioOCI, CI/CD & GitOps
Answer
Situation read → Charts are code; they need tests, versioning and publishing.
What I'd do →
- On PR:
helm lint --strictper env,helm template | kubeconform, helm-unittest,ct installon kind,helm diffagainst staging. - Enforce a version bump if chart files changed (
ct lintchecks this). - On merge:
helm package,helm pushto OCI (ECR/GHCR) with immutable tags, cosign sign. - Update the environment config (Helmfile or Argo CD) via PR for promotion.
Why → Every published chart version is tested, immutable and traceable.
Interview tip → Mention version-bump enforcement and immutable tags.
More on OCI, CI/CD & GitOps
Your org is moving charts from ChartMuseum to an OCI registry. What changes for consumers?IntermediateA chart version was overwritten in the registry and two clusters now run different content for "1.4.0". How do you prevent it?AdvancedHow 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