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:

  1. Installed the helm-mapkubeapis plugin
helm plugin install https://github.com/helm/helm-mapkubeapis
  1. Run the plugin to update the resource mapping
helm mapkubeapis <RELEASE_NAME>
  1. Upgrade/Delete the Helm chart
helm upgrade <RELEASE_NAME> <CHART_NAME>

# or

helm delete <RELEASE_NAME>
×