-
- Downloads
Extracts creation of cluster to controller concern
Extracted from `Projects::ClustersController#new`, `#create_gcp`, `#create_user` into new common module, with shared views and shared examples. This will allow when we have Groups::ClustersController to share most of the code. Address ModuleWithInstanceVariables warnings by moving to render with locals
Showing
- app/controllers/concerns/creates_cluster.rb 159 additions, 0 deletionsapp/controllers/concerns/creates_cluster.rb
- app/controllers/projects/clusters_controller.rb 5 additions, 116 deletionsapp/controllers/projects/clusters_controller.rb
- app/views/shared/clusters/_sidebar.html.haml 0 additions, 0 deletionsapp/views/shared/clusters/_sidebar.html.haml
- app/views/shared/clusters/gcp/_form.html.haml 9 additions, 4 deletionsapp/views/shared/clusters/gcp/_form.html.haml
- app/views/shared/clusters/gcp/_header.html.haml 0 additions, 0 deletionsapp/views/shared/clusters/gcp/_header.html.haml
- app/views/shared/clusters/new.html.haml 12 additions, 8 deletionsapp/views/shared/clusters/new.html.haml
- app/views/shared/clusters/user/_form.html.haml 9 additions, 4 deletionsapp/views/shared/clusters/user/_form.html.haml
- app/views/shared/clusters/user/_header.html.haml 0 additions, 0 deletionsapp/views/shared/clusters/user/_header.html.haml
- qa/qa/page/project/operations/kubernetes/add.rb 1 addition, 1 deletionqa/qa/page/project/operations/kubernetes/add.rb
- qa/qa/page/project/operations/kubernetes/add_existing.rb 1 addition, 1 deletionqa/qa/page/project/operations/kubernetes/add_existing.rb
- spec/controllers/projects/clusters_controller_spec.rb 3 additions, 143 deletionsspec/controllers/projects/clusters_controller_spec.rb
- spec/support/shared_examples/controllers/clusters_shared_examples.rb 204 additions, 0 deletions...t/shared_examples/controllers/clusters_shared_examples.rb
Loading
Please register or sign in to comment