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:
authorShinya Maeda <shinya@gitlab.com>2017-10-31 21:59:40 +0300
committerShinya Maeda <shinya@gitlab.com>2017-10-31 21:59:40 +0300
commit253bf69dda460869741bc6c9d864c789055b8013 (patch)
tree38fc90dbd0c76bf11c2845aa86130be5c051ef3b /app/controllers/projects/clusters_controller.rb
parent6a65e2f5f94781a69f3f7fb329483ead6bc81fd9 (diff)
specs for feature
Diffstat (limited to 'app/controllers/projects/clusters_controller.rb')
-rw-r--r--app/controllers/projects/clusters_controller.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/app/controllers/projects/clusters_controller.rb b/app/controllers/projects/clusters_controller.rb
index b204bd17eec..0f35b4f9c21 100644
--- a/app/controllers/projects/clusters_controller.rb
+++ b/app/controllers/projects/clusters_controller.rb
@@ -27,14 +27,10 @@ class Projects::ClustersController < Projects::ApplicationController
end
def new
- # @cluster = Clusters::Cluster.new(
- # platform_type: :kubernetes,
- # provider_type: :gcp).tap do |cluster|
- # cluster.build_provider_gcp
- # cluster.build_platform_kubernetes
- # cluster.projects << project
- # end
- @cluster = Clusters::Cluster.new
+ @cluster = Clusters::Cluster.new.tap do |cluster|
+ cluster.build_provider_gcp
+ cluster.build_platform_kubernetes
+ end
end
def create