|
{{- if and .Values.podMonitor.enabled (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") }} |
Capabilities of the cluster tied to the current context likely has no impact on what should be templated. If I enable pod monitoring then it should template out the pod monitor not check if my current environment supports the CRD as its entirely possible where the helm chart is for is different than the environment templating it (IE CI/CD).
helm-charts/charts/vector/templates/podmonitor.yaml
Line 1 in d11451c
Capabilities of the cluster tied to the current context likely has no impact on what should be templated. If I enable pod monitoring then it should template out the pod monitor not check if my current environment supports the CRD as its entirely possible where the helm chart is for is different than the environment templating it (IE CI/CD).