Interview Prep/Helm/Install & Upgrade Failures

`Error: INSTALLATION FAILED: secrets is forbidden: User "system:serviceaccount:ci:deployer" cannot list resource "secrets" in API group "" in the namespace "shop"`

BeginnerTroubleshootingInstall & Upgrade Failures
Answer

Likely causes → The CI identity lacks permission on Secrets, which Helm needs for its release storage (even if the chart creates no Secrets).

Diagnose →

kubectl auth can-i list secrets -n shop --as system:serviceaccount:ci:deployer
kubectl auth can-i create deployments -n shop --as system:serviceaccount:ci:deployer

Fix → Grant a Role with get, list, watch, create, update, patch, delete on secrets plus the kinds the chart renders, bound to the SA in that namespace.

Prevent → Template the deployer Role per namespace as part of namespace provisioning.

All Helm questions Roadmap: Helm

More on Install & Upgrade Failures