diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-08-29 14:38:26 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-09-14 07:26:50 +0300 |
commit | bf0179b7f170d06d88a8bbe1fbf37e4c8abe6aad (patch) | |
tree | fb17b4c714fdc5d581ff467eb5595119c57e5d25 /app/services | |
parent | 0f210a69be773bcc9ce99d8e4bcbd0f695b0b280 (diff) |
Set RBAC support behind a feature flag.
This is the same as with adding an existing cluster
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/clusters/gcp/finalize_creation_service.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/clusters/gcp/finalize_creation_service.rb b/app/services/clusters/gcp/finalize_creation_service.rb index e0e8a9a372a..e5bc80f6697 100644 --- a/app/services/clusters/gcp/finalize_creation_service.rb +++ b/app/services/clusters/gcp/finalize_creation_service.rb @@ -48,9 +48,8 @@ module Clusters Clusters::Gcp::Kubernetes::FetchKubernetesTokenService.new(kube_client).execute end - # GKE Clusters have RBAC enabled on Kubernetes >= 1.6 def authorization_type - 'rbac' + Feature.enabled?(:rbac_clusters) ? 'rbac' : 'abac' end def kube_client |