Commit graph

14 commits

Author SHA1 Message Date
Andrew Newdigate
ff0b2cc61f Re-enable MethodCallWithoutArgsParentheses Cop
Re-enables and autocorrects all instances of the
Style/MethodCallWithoutArgsParentheses rule
2019-01-29 21:05:30 +02:00
Chris Baumbauer
1102deb0bd Initial Serverless Functions detailed view 2019-01-10 14:13:41 -08:00
Mayra Cabrera
8658a22d50 Add kubeclients stub methods
Stub methods were added for:
- GET service account
- PUT service account
- GET role binding
- PUT role binding
2018-12-27 16:56:57 -06:00
Dylan Griffith
2c80a1c0de Introduce Knative Serverless Tab 2018-12-06 18:08:49 +00:00
Thong Kuah
dc18272091 Modify service so that it can be re-run
If the service fails mid-point, then we should be able to re-run this
service. So, detect presence of any previously created Kubernetes
resource and update or create accordingly.

Fix specs accordingly. In the case of finalize_creation_service_spec.rb,
I decided to stub out the async worker rather than maintaining
individual stubs for various kubeclient calls for that worker.

Also add test cases for group clusters
2018-12-04 15:46:46 +13:00
Chris Baumbauer
327892b23e Add knative client to kubeclient library 2018-11-15 11:39:43 +00:00
Thong Kuah
14b3033a0d Show HTTP response code for Kubernetes errors 2018-11-13 12:46:01 +00:00
Mayra Cabrera
b0c30dce3f Introduce new kubernetes spec helpers
Add create_role_binding, create_namespace and get_namespace kubernetes
spec helpers.

This new helpers are going to be used on
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22011
2018-10-22 17:09:12 -05:00
Thong Kuah
fd9d2f4914 Kubernetes secret are namespaced, so must always pass a namespace arg.
In our case it's 'default'.
2018-09-14 16:26:51 +12:00
Thong Kuah
a02e35308b Always create gitlab service account and service account token regardless of ABAC/RBAC
This also solves the async nature of the automatic creation of default
service tokens for service accounts. It also makes explicit which
service account token we always use.

create cluster role binding only if the provider has legacy_abac
disabled.
2018-09-14 16:26:51 +12:00
Thong Kuah
7ebc18d1b3 When provisioning a new cluster, create gitlab service account so that GitLab can perform operations in a RBAC-enabled cluster.
Correspondingly, use the token of the gitlab service account, vs the
default service account token which will have no privs.
2018-09-14 16:26:50 +12:00
Thong Kuah
6f2ad2b604 Enable Kubernetes RBAC for GitLab Managed Apps for existing clusters 2018-09-06 10:03:38 +00:00
Matija Čupić
d80c371968
Backport KubernetesHelper deployment related changes 2018-05-10 10:52:58 +02:00
Rémy Coutable
023d4f6f2f
Move spec helpers/matchers/shared examples/contexts to their relevant folder
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-23 12:20:30 +02:00
Renamed from spec/support/kubernetes_helpers.rb (Browse further)