Hello,
we are seeing different outputs for the following two combinations:
- helm-diff v3.14.1, helm v4.0.0 and Helmfile v1.2.1
- helm-diff v3.14.1, helm v3.19.2 and Helmfile v1.2.1
With helm v4.0.0 it seems that the following code is evaluated differently by helm-diff:
{{ if .Capabilities.APIVersions.Has "monitoring.coreos.com/v1/PrometheusRule" }}
{{ template "prometheusrule.tpl" . }}
{{ end }}
helm-diff shows that the code block would be deleted by the deployment but helm v4.0.0 does not remove it.
If this deployment is executed with helm v3.19.2 that block is not shown as code to be removed (and also not removed by helm v3.19.2).
Therefore I think the helm-diff plugin evaluates .Capabilities.APIVersions.Has in a different/wrong way when running with helm v4.0.0.