How to fix helm upgrade
Written by haloboy777 on 2024-10-21
Fixing resource mapping for older helm releases
Recently, I was trying to upgrade a Helm chart in an EKS cluster and I encountered the following error:
Helm upgrade failed: resource mapping not found for name: "<RELEASE_NAME>" namespace: "" from "": no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta1"
To fix this I did the following:
- Installed the
helm-mapkubeapis
plugin
helm plugin install https://github.com/helm/helm-mapkubeapis
- Run the plugin to update the resource mapping
helm mapkubeapis <RELEASE_NAME>
- Upgrade/Delete the Helm chart
helm upgrade <RELEASE_NAME> <CHART_NAME>
# or
helm delete <RELEASE_NAME>