Commit Graph

11 Commits

Author SHA1 Message Date
GitLab Bot 00050519d1 Add latest changes from gitlab-org/gitlab@master 2019-10-15 06:07:25 +00:00
Ryan Cobb 935ecf5c91 Add method to authorize reading from prometheus proxy 2019-09-07 08:24:33 +00:00
Dylan Griffith dacd0ee18b Refactor: model errors for multi cluster validation
The current approach requires catching exceptions to handle these errors
and callers are already handling model validations so it seems more
appropriate.  Also it seemed to convoluted to add this logic directly to
the model since the model needs to check too many possible associations
to determine whether or not there are more than one cluster since the
model doesn't know what it's being created on. Additionally we only
wanted to validate during create to avoid the risk of existing models
becoming invalid by many different edge cases.
2019-07-11 17:22:58 +10:00
Thong Kuah 8152efbe2f Remove instance_clusters feature_flag
Now we have terminals for instance and group clusters we can remove the
FF now. Deploying to instance clusters has been working without
complaints too.
2019-06-28 01:24:05 +12:00
James Fargher 0aeef7335f Convert instance level clusters enabled to class method 2019-05-07 08:37:04 +12:00
James Fargher beb66cfcba Check instance cluster feature at policy level
Try to simplify feature flag checks by using policies
2019-05-07 08:37:04 +12: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
Thong Kuah dcf0caaa06 Add policy for clusters on group level
- maintainer for group can read, create, update, and admin cluster
- project user, at any level, cannot do anything with group cluster
2018-11-08 23:14:06 +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
Mark Chao a63bce1a4b Resolve "Rename the `Master` role to `Maintainer`" Backend 2018-07-11 14:36:08 +00:00
Shinya Maeda d0cff7f585 This works 2017-10-23 11:36:35 +03:00