diff options
author | James Fargher <proglottis@gmail.com> | 2019-06-21 10:54:43 +0300 |
---|---|---|
committer | James Fargher <proglottis@gmail.com> | 2019-07-04 21:41:07 +0300 |
commit | 398c0e48f70af0a0b1984ea5c4c58ea4d5cb9512 (patch) | |
tree | 4f7182c1c14523326c79344ebe637b26789efb49 /app/services/prometheus | |
parent | 507dfc66b480c0df097daefe86bf3a6bb3b2210f (diff) |
Remove now unused KubernetesService methods
Now that KubernetesService can no longer be a DeploymentPlatform we can
remove all kubernetes client code and KubernetesService edge cases.
Diffstat (limited to 'app/services/prometheus')
-rw-r--r-- | app/services/prometheus/adapter_service.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/services/prometheus/adapter_service.rb b/app/services/prometheus/adapter_service.rb index 3be958e1613..399f4c35d66 100644 --- a/app/services/prometheus/adapter_service.rb +++ b/app/services/prometheus/adapter_service.rb @@ -27,12 +27,9 @@ module Prometheus end def cluster_prometheus_adapter - return unless deployment_platform.respond_to?(:cluster) + application = deployment_platform&.cluster&.application_prometheus - cluster = deployment_platform.cluster - return unless cluster.application_prometheus&.available? - - cluster.application_prometheus + application if application&.available? end end end |