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

After rollback, the app still reads the new config.

IntermediateTroubleshootingHooks, Tests, GitOps & Secrets
Answer

Likely causes → The config comes from a source Helm does not roll back (an ExternalSecret synced from a secret manager, a ConfigMap created by a hook, or a resource with resource-policy: keep), or pods were not restarted because the pod template did not change.

Diagnose →

helm get manifest shop -n shop | grep -A5 'kind: ConfigMap'
kubectl get cm,secret -n shop -o custom-columns=NAME:.metadata.name,MANAGED:.metadata.labels.app\\.kubernetes\\.io/managed-by

Fix → Revert the external config at its source, and restart pods (kubectl rollout restart deploy/shop-api -n shop) or rely on checksum annotations.

Prevent → Checksum annotations on chart-managed config; versioned external config.

All Helm questions Roadmap: Helm

More on Hooks, Tests, GitOps & Secrets