Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2019-03-29 21:23:18 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-03-29 21:23:18 +0300
commitab06d1eda2fa222b4de400d2b18eab611ffefa68 (patch)
tree978ed57b01da01e1187db25f0423e2ada85550b7 /app/presenters/clusters
parent0df75d241a5054a19086dca29cca4d65ac1736fe (diff)
Renames Cluster#managed? to provided_by_user?
This will allow to user the term managed? on https://gitlab.com/gitlab-org/gitlab-ce/issues/56557. Managed? will be used to distinct clusters that are automatically managed by GitLab
Diffstat (limited to 'app/presenters/clusters')
-rw-r--r--app/presenters/clusters/cluster_presenter.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/presenters/clusters/cluster_presenter.rb b/app/presenters/clusters/cluster_presenter.rb
index 7a5b68f9a4b..81994bbce7d 100644
--- a/app/presenters/clusters/cluster_presenter.rb
+++ b/app/presenters/clusters/cluster_presenter.rb
@@ -48,6 +48,10 @@ module Clusters
end
end
+ def read_only_kubernetes_platform_fields?
+ !cluster.provided_by_user?
+ end
+
private
def clusterable