diff --git a/charts/opscenter-features/templates/_helpers.tpl b/charts/opscenter-features/templates/_helpers.tpl index 111154581..12d7291d1 100644 --- a/charts/opscenter-features/templates/_helpers.tpl +++ b/charts/opscenter-features/templates/_helpers.tpl @@ -109,5 +109,5 @@ Image Templates {{- end }} {{- define "prometheus.mode" -}} -{{- ternary "federated" "standalone" (and (has "Rancher" .Values.clusterMetadata.clusterManagers) (not (empty (lookup "monitoring.coreos.com/v1" "Prometheus" "cattle-monitoring-system" "rancher-monitoring-prometheus")))) -}} +{{- ternary "federated" "standalone" (and (has "Rancher" .Values.clusterMetadata.clusterManagers) (and (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") (not (empty (lookup "monitoring.coreos.com/v1" "Prometheus" "cattle-monitoring-system" "rancher-monitoring-prometheus"))))) -}} {{- end }}