Interview Prep/Helm/Install & Upgrade Failures

`Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: resource mapping not found for name: "shop-api" namespace: "" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"`

AdvancedTroubleshootingInstall & Upgrade Failures
Answer

Likely causes → The cluster was upgraded and removed an API version that the stored previous release manifest still uses. Helm must parse the old manifest to compute the diff and cannot.

Diagnose →

helm get manifest shop -n shop | grep -B1 -A1 'policy/v1beta1'
kubectl version

Fix →

helm plugin install https://github.com/helm/helm-mapkubeapis
helm mapkubeapis shop -n shop
helm upgrade shop ./shop -n shop -f values-prod.yaml   # chart updated to policy/v1

Prevent → Before cluster upgrades, scan releases with pluto detect-helm -o wide and upgrade charts to supported APIs first.

All Helm questions Roadmap: Helm

More on Install & Upgrade Failures