Commit graph

6 commits

Author SHA1 Message Date
Tiger
ce0d74c26b Remove unused Clusters::RefreshService
Also removes all logic from ClusterConfigureWorker
and ClusterProjectConfigureWorker, which are also
no longer used.
2019-07-29 12:04:18 +10:00
Tiger
fa5a6ae172 Stop configuring group clusters on creation
Immediate configuration is not ideal for group and instance
level clusters as projects that may never be deployed would
still have Kubernetes namespaces and service accounts created
for them.

As of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25586
we now create only the resources that are required for the
project being deployed, at the time of deployment.
2019-05-16 20:18:42 -05:00
Mayra Cabrera
89132bbdd6 Add gitlab-managed option to clusters form
When this option is enabled, GitLab will create namespaces and service
accounts as usual. When disabled, GitLab wont create any project
specific kubernetes resources

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56557
2019-05-03 01:05:53 +00:00
Tiger
e33ecfdec3 Disable JIT resource creation for project clusters
JIT resource creation blocks deployments if a user is
self-managing their cluster, as it will fail the build
if unable to create a namespace and service account.

Using a custom namespace and service account was previously
supported for project level clusters, so we should preserve
this functionality.

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/27352
2019-04-16 13:59:37 +10:00
Tiger
759dab5b69 Add feature flag for build preparing state
The flag is on by default, but allows us to revert back
to the old behaviour if we encounter any problems.
2019-03-20 12:04:46 +11:00
George Tsiolis
ac5fe450ff Rename ClusterPlatformConfigureWorker 2018-12-21 13:17:13 +00:00
Renamed from app/workers/cluster_platform_configure_worker.rb (Browse further)