diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-09-07 16:32:31 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-09-14 07:26:51 +0300 |
commit | 292d2208e093658bbbd95a0d36c7e40b62cc271c (patch) | |
tree | cadba6077fc2f17ce775f8fed88087bd339d7c4e /app/services | |
parent | a02e35308b97d43964ebcf7fda040da418c04ddc (diff) |
Add FE option for users to choose to create a fully RBAC-enabled cluster or not.
This is similar to the option in the Add Existing cluster form
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/clusters/create_service.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/services/clusters/create_service.rb b/app/services/clusters/create_service.rb index eb171daa694..e3e0cfa462c 100644 --- a/app/services/clusters/create_service.rb +++ b/app/services/clusters/create_service.rb @@ -25,16 +25,11 @@ module Clusters params[:provider_gcp_attributes].try do |provider| provider[:access_token] = access_token - provider[:legacy_abac] = legacy_abac_value end @cluster_params = params.merge(user: current_user, projects: [project]) end - def legacy_abac_value - !Feature.enabled?(:rbac_clusters) - end - def can_create_cluster? project.clusters.empty? end |