diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-02-15 02:43:44 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-02-15 02:43:44 +0300 |
commit | 13bb704d50cc885935bc7b0f850d47c1ace5cdd7 (patch) | |
tree | f062da3cd61f2cce2e7c74d81e796d0a278e8aba /app/services/prometheus | |
parent | 4e5494081e95adf05ab9df47c284bd796ecc4b01 (diff) |
Remove #ready? method in favor of #available?
Given https://github.com/helm/helm/issues/3338, I think that we should
exclude applications that are :update_errored, :updating as well.
Diffstat (limited to 'app/services/prometheus')
-rw-r--r-- | app/services/prometheus/adapter_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/prometheus/adapter_service.rb b/app/services/prometheus/adapter_service.rb index a791845ba20..3be958e1613 100644 --- a/app/services/prometheus/adapter_service.rb +++ b/app/services/prometheus/adapter_service.rb @@ -30,7 +30,7 @@ module Prometheus return unless deployment_platform.respond_to?(:cluster) cluster = deployment_platform.cluster - return unless cluster.application_prometheus&.ready? + return unless cluster.application_prometheus&.available? cluster.application_prometheus end |