Seemingly helm diff lacks support for any way of specifying which kube-version is in use, it also doesn't honor the version used on the server or client.
desired functionality:
helm diff upgrade --kube-version 1.22.4
should allow the use of:
{{- if semverCompare ">= 1.19.0" $.Capabilities.KubeVersion.Version }}
at present $.Capabilities.KubeVersion.Version seems to be null