BigW Consortium Gitlab

Commit 4b1d42bb by Pawel Chojnacki

check if service is template

parent 3727dfcd
...@@ -129,6 +129,7 @@ class PrometheusService < MonitoringService ...@@ -129,6 +129,7 @@ class PrometheusService < MonitoringService
end end
def prometheus_installed? def prometheus_installed?
return false if template?
project.clusters.enabled.any? { |cluster| cluster.application_prometheus&.installed? } project.clusters.enabled.any? { |cluster| cluster.application_prometheus&.installed? }
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment