Commit Graph

21 Commits

Author SHA1 Message Date
GitLab Bot cf24d183b3 Add latest changes from gitlab-org/gitlab@master 2020-09-07 15:09:04 +00:00
GitLab Bot 3a4c658196 Add latest changes from gitlab-org/gitlab@master 2020-07-30 00:09:53 +00:00
GitLab Bot 9d67bc14cb Add latest changes from gitlab-org/gitlab@master 2020-07-16 12:09:22 +00:00
GitLab Bot a898b6057e Add latest changes from gitlab-org/gitlab@master 2020-07-15 09:09:34 +00:00
GitLab Bot 66bd1f0fdc Add latest changes from gitlab-org/gitlab@master 2020-07-14 15:09:05 +00:00
GitLab Bot ff430539d5 Add latest changes from gitlab-org/gitlab@master 2020-07-13 15:09:08 +00:00
GitLab Bot c6a33b2982 Add latest changes from gitlab-org/gitlab@master 2020-04-10 12:09:36 +00:00
GitLab Bot 898e2cc1df Add latest changes from gitlab-org/gitlab@master 2019-12-20 09:24:38 +00:00
GitLab Bot 157f9a451a Add latest changes from gitlab-org/gitlab@master 2019-11-22 00:06:08 +00:00
Jacques Erasmus 3c913df28e Add changelog entry
Added a changelog entry for the feature
2019-05-27 08:23:17 +00:00
James Fargher 733da6d6a0 Instance level kubernetes clusters admin
Instance level clusters were already mostly supported, this change adds
admin area controllers for cluster CRUD
2019-05-07 08:37:03 +12:00
Mayra Cabrera ab06d1eda2 Renames Cluster#managed? to provided_by_user?
This will allow to user the term managed? on
https://gitlab.com/gitlab-org/gitlab-ce/issues/56557. Managed? will be
used to distinct clusters that are automatically managed by GitLab
2019-03-29 18:23:18 +00:00
Thong Kuah 0e78834bc9 Move code to presenter
Part of the code such as #show_path is already present on the presenter.
Also avoid having code in two places (helper and presenter)

Sanitize and assert html_safe. Additional layer of defense - on top of
GitLab already requiring group names to be composed of small set of
chars A-Z, - and spaces.

Only link to cluster if user can read cluster

Make clear that arg is a GroupClusterablePresenter

Add more specs for completeness
2018-12-17 09:51:53 +13:00
Thong Kuah 459758921f Move description of cluster type to presenter 2018-12-13 20:53:15 +13:00
Thong Kuah b4488cee97 Consolidate how we allow user defined namespace
Use model method as single source of truth instead of splitting between
presenter and Kubernetes model
2018-11-08 23:28:30 +13:00
Thong Kuah 5a042ef2fb Only project clusters has Project Namespace field
Group clusters should not allow Project Namespace so don't show that
field input too
2018-11-08 23:28:30 +13:00
Thong Kuah 54e8ff0f21 Extend clusters_controller for group type clusters
- Add pages javascripts to intialize clusters for group pages

- Move specs asserting gcp specific validations from controller into
UpdateService spec

- Also teach Clusters::ApplicationController about groups
2018-11-08 23:14:06 +13:00
Thong Kuah 1163b23539 Move view and path concerns to presenters
- Move show path for cluster to ClusterPresenter

- Create ClusterablePresenter to encapsulate logic. Consolidates
scattered methods from BaseController and ClustersHelper into an object.
2018-11-01 19:37:32 +13:00
gfyoung d5bf57a6af Enable frozen string in presenters and policies
Enable frozen string in:

* app/presenters
* app/policies

Partially addresses #47424.
2018-07-24 13:18:25 -07:00
Matija Čupić 83648f243d
Move can_toggle_cluster? from helper to presenter 2017-12-05 17:09:04 +01:00
Shinya Maeda d0cff7f585 This works 2017-10-23 11:36:35 +03:00