summaryrefslogtreecommitdiff
path: root/app/controllers/projects/clusters
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-08-191-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-08-091-15/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-07-272-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-04-071-0/+15
|
* Avoid passing not_found_or_authorized_proc aroundJames Edwards-Jones2019-05-151-3/+1
| | | | | Since this needs to be called on every find_routable!(Project, ... we can instead move it to a RoutableActions check.
* Resolve controller sharing concernThong Kuah2018-11-011-0/+17
| | | | | | | | | | | | | | Use ClustersController as base while having Projects::ClustersController to inform what `clusterable` is. Thanks @ayufan for the great suggestion ! - View changes to work with new approach - Fix javascript for new approach - Fix feature specs for new approach - Fix QA
* Convert clusters to use a top-level controllerThong Kuah2018-11-011-29/+0
| | | | | | | | | | | | | | | | | | | | | | | | In preparation so that we can create both cluster attached to project and cluster attached to group. - Move ClustersController to top level - Move Clusters::ApplicationsController to top-level too - Creates a Clusters::BaseController to share common functions - Do not rely on @project ivar. Anything could set the ivar. - Fix Vue page components due to new data-page value Because of the controller change we have gone from `projects:clusters:new` to `clusters:new`, so we need to update the file location of the page components. There is somewhere a function that will convert data-page to a file location. On that note, projects/clusters/gcp/new/, translate to Projects::Clusters::Gcp#new doesn't exist so replace that with clusters/create_gcp/ and clusters/create_user/
* Remove un-used inheritance from serviceThong Kuah2018-10-151-3/+1
| | | | | | | | | | | | Remove the inheritance from ::BaseService which is causing us to inherit the initializer that has project as the first arg, as we will not have access to project with forthcoming group clusters. Also call install service from create service - 1 less thing to re-use Extract TestRequest code into a spec helper. Given that we need different behaviour for Rails 5.0 (and again in Rails 5.1!), it's handy to have that branching behaviour in one place
* Move non-controller code into dedicated serviceThong Kuah2018-10-151-27/+7
| | | | | | | | | | This should help with code re-use when we create applications for group level cluster next. Change `find_or_initialize_by` to explicitly find or build the right association based on the application name. The benefit here is that we use the associations on @cluster rather than querying from the other side of the association.
* Enable even more frozen string in app/controllersgfyoung2018-09-251-0/+2
| | | | | | | | | | | | Enables frozen string for some vestigial files as well as the following: * app/controllers/projects/**/*.rb * app/controllers/sherlock/**/*.rb * app/controllers/snippets/**/*.rb * app/controllers/users/**/*.rb Partially addresses #47424.
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+2
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Merge remote-tracking branch 'origin/master' into 43446-new-cluster-page-tabsDennis Tang2018-06-191-1/+1
|\
| * Pass request to oauth creation during cluster app installDmitriy Zaporozhets2018-06-071-1/+1
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | consolidate back into one controllerDennis Tang2018-06-192-86/+0
| |
* | rubocop fixDennis Tang2018-06-061-1/+0
| |
* | redirect back to form if token expiresDennis Tang2018-06-051-9/+13
| |
* | split into gcp and user controllers againDennis Tang2018-06-052-0/+83
| |
* | Merge remote-tracking branch 'origin/master' into 43446-new-cluster-page-tabsDennis Tang2018-06-011-1/+22
|\ \ | |/ | | | | | | # Conflicts: # doc/user/project/clusters/index.md
| * Merge remote-tracking branch 'origin/master' into ↵Dmitriy Zaporozhets2018-05-301-29/+3
| |\ | | | | | | | | | 46487-add-support-for-jupyter-in-gitlab-via-kubernetes
| | * Move token_in_session to helper methodMatija Čupić2018-05-281-2/+2
| | |
| * | Fix exception in clusters/applications_controller.rbDmitriy Zaporozhets2018-05-301-1/+1
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Refactor cluster app creation code in controllerDmitriy Zaporozhets2018-05-301-4/+5
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Add oauth reference to jupyter cluster appDmitriy Zaporozhets2018-05-251-1/+20
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Add support for Jupyter in GitLab via KubernetesDmitriy Zaporozhets2018-05-251-0/+1
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | combine "create" and "existing" GKE cluster views into one new pageDennis Tang2018-05-262-116/+0
| |/ |/| | | | | | | | | # Conflicts: # app/controllers/projects/clusters/gcp_controller.rb # app/views/projects/clusters/gcp/_form.html.haml
* | Merge remote-tracking branch 'origin/master' into ↵Dennis Tang2018-05-251-3/+4
|\ \ | |/ | | | | 38759-fetch-available-parameters-directly-from-gke-when-creating-a-cluster
| * Refactor code around scheduling cluster installationsdz-refactor-cluster-apps-scheduleDmitriy Zaporozhets2018-05-241-3/+4
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Remove list_projects action from Google API checkMatija Čupić2018-05-021-1/+1
| |
* | Remove Projects::Clusters::GcpController#list_projectsMatija Čupić2018-05-021-16/+0
| |
* | Use ListGcpProjectsWorker#read_projects instead of get_projectsMatija Čupić2018-04-231-1/+1
| |
* | Remove the GCP billing verification stepMatija Čupić2018-04-201-17/+1
| |
* | Store projects in ListGcpProjectsWorkerMatija Čupić2018-04-201-10/+9
| |
* | Rename CheckGcpProjectBillingWorker to ListGcpProjectsWorkerMatija Čupić2018-04-201-3/+3
| |
* | Expose CloudPlatform::Client#projects_list as GcpController#list_projects38759-fetch-available-parameters-directly-from-gke-when-creating-a-clusterMatija Čupić2018-03-161-1/+8
|/
* Do not persist Google Project Billing Failure errors after a reloadMatija Čupić2018-02-221-2/+2
|
* Refactor CheckGcpProjectBillingWorkerMatija Čupić2018-02-121-8/+6
|
* Replace "cluster" with "Kubernetes cluster"winh-kubernetes-clustersWinnie Hellmann2018-02-061-1/+1
|
* Change failed GCP billing check wordingMatija Čupić2018-01-111-1/+1
|
* Use new tab for link in flashMatija Čupić2018-01-111-2/+1
|
* Fix link to billingKamil Trzciński2018-01-101-1/+2
|
* Fix billing checkingKamil Trzciński2018-01-101-1/+1
|
* Extract GCP billing check as methodMatija Čupić2018-01-101-9/+20
|
* Refactor GCP session token exchange schemeMatija Čupić2018-01-071-5/+1
|
* Store OAuth token in Redis for worker to pick upMatija Čupić2018-01-061-1/+6
|
* Remove polling interval from GcpControllerMatija Čupić2018-01-051-2/+0
|
* Implement GCP billing check in cluster formMatija Čupić2017-12-211-7/+21
|
* Remove actions for async GCP project billing checkMatija Čupić2017-12-211-31/+0
|
* Merge branch 'master' into ↵Matija Čupić2017-12-212-0/+2
|\ | | | | | | 39957-redirect-to-gpc-page-if-users-try-to-create-a-cluster-but-the-account-is-not-enabled
| * Allow environment_scope in cluster controllersMatija Čupić2017-12-162-0/+2
| |
* | Add Worker rerun action to GcpControllerMatija Čupić2017-12-161-1/+10
| |