Right after a Kubernetes upgrade, `helm upgrade` fails with "unable to recognize "": no matches for kind "HorizontalPodAutoscaler" in version "autoscaling/v2beta2"".
Likely causes → The new Kubernetes version removed a deprecated API (autoscaling/v2beta2 was removed in 1.26; policy/v1beta1 PodDisruptionBudget in 1.25). The chart still renders the old apiVersion, and Helm's stored release manifest also references it, which can block upgrades even after you fix the chart.
Diagnose →
helm template ./chart | grep -n 'apiVersion: autoscaling/v2beta2'
kubectl api-versions | grep autoscaling
helm get manifest web -n prod | grep apiVersion | sort | uniq -c
Tools like pluto or kubent list every deprecated API in charts and live releases.
Fix → Update the templates to autoscaling/v2 (and adjust the field changes). If Helm still fails because the stored release references the removed API, use the helm-mapkubeapis plugin to rewrite the release metadata, then upgrade.
Prevent → Run pluto detect-helm / kubent in CI before every cluster upgrade, and upgrade staging first with the same charts.