2017-10-23 04:36:35 -04:00
|
|
|
module Clusters
|
2017-10-05 13:45:15 -04:00
|
|
|
class ClusterPresenter < Gitlab::View::Presenter::Delegated
|
|
|
|
presents :cluster
|
|
|
|
|
|
|
|
def gke_cluster_url
|
2017-10-23 04:36:35 -04:00
|
|
|
"https://console.cloud.google.com/kubernetes/clusters/details/#{provider.zone}/#{name}" if gcp?
|
2017-10-05 13:45:15 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|