diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-11-06 11:55:10 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-11-08 13:28:30 +0300 |
commit | 5a042ef2fbe1bd57b9428c89b49d2fa1e248ad46 (patch) | |
tree | 15130ca3700f2da12044087510128a715758d6e0 /app/controllers | |
parent | 530371840288af4bc54bc2c32c602e568ce20854 (diff) |
Only project clusters has Project Namespace field
Group clusters should not allow Project Namespace so don't show that
field input too
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/clusters/clusters_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/clusters/clusters_controller.rb b/app/controllers/clusters/clusters_controller.rb index f6f2060ebb5..2e9c77ae55c 100644 --- a/app/controllers/clusters/clusters_controller.rb +++ b/app/controllers/clusters/clusters_controller.rb @@ -183,13 +183,13 @@ class Clusters::ClustersController < Clusters::BaseController def gcp_cluster @gcp_cluster = ::Clusters::Cluster.new.tap do |cluster| cluster.build_provider_gcp - end + end.present(current_user: current_user) end def user_cluster @user_cluster = ::Clusters::Cluster.new.tap do |cluster| cluster.build_platform_kubernetes - end + end.present(current_user: current_user) end def validate_gcp_token |