summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorJames Fargher <proglottis@gmail.com>2019-06-21 08:54:43 +0100
committerJames Fargher <proglottis@gmail.com>2019-07-05 06:41:07 +1200
commit398c0e48f70af0a0b1984ea5c4c58ea4d5cb9512 (patch)
tree4f7182c1c14523326c79344ebe637b26789efb49 /app/services
parent507dfc66b480c0df097daefe86bf3a6bb3b2210f (diff)
downloadgitlab-ce-398c0e48f70af0a0b1984ea5c4c58ea4d5cb9512.tar.gz
Remove now unused KubernetesService methodsremove_unused_k8s_service_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')
-rw-r--r--app/services/prometheus/adapter_service.rb7
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