summaryrefslogtreecommitdiff
path: root/app/controllers/clusters/clusters_controller.rb
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2019-03-29 18:23:18 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-03-29 18:23:18 +0000
commitab06d1eda2fa222b4de400d2b18eab611ffefa68 (patch)
tree978ed57b01da01e1187db25f0423e2ada85550b7 /app/controllers/clusters/clusters_controller.rb
parent0df75d241a5054a19086dca29cca4d65ac1736fe (diff)
downloadgitlab-ce-ab06d1eda2fa222b4de400d2b18eab611ffefa68.tar.gz
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/controllers/clusters/clusters_controller.rb')
-rw-r--r--app/controllers/clusters/clusters_controller.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/clusters/clusters_controller.rb b/app/controllers/clusters/clusters_controller.rb
index 68a2a83f0de..e82756e4643 100644
--- a/app/controllers/clusters/clusters_controller.rb
+++ b/app/controllers/clusters/clusters_controller.rb
@@ -123,25 +123,25 @@ class Clusters::ClustersController < Clusters::BaseController
private
def update_params
- if cluster.managed?
+ if cluster.provided_by_user?
params.require(:cluster).permit(
:enabled,
+ :name,
:environment_scope,
:base_domain,
platform_kubernetes_attributes: [
+ :api_url,
+ :token,
+ :ca_cert,
:namespace
]
)
else
params.require(:cluster).permit(
:enabled,
- :name,
:environment_scope,
:base_domain,
platform_kubernetes_attributes: [
- :api_url,
- :token,
- :ca_cert,
:namespace
]
)