summaryrefslogtreecommitdiff
path: root/app/workers/cluster_project_configure_worker.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused Clusters::RefreshServiceTiger2019-07-291-3/+1
| | | | | | Also removes all logic from ClusterConfigureWorker and ClusterProjectConfigureWorker, which are also no longer used.
* Disable JIT resource creation for project clusters60500-disable-jit-kubernetes-resource-creation-for-project-level-clustersTiger2019-04-161-2/+0
| | | | | | | | | | | | 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
* Add feature flag for build preparing stateTiger2019-03-201-0/+2
| | | | | The flag is on by default, but allows us to revert back to the old behaviour if we encounter any problems.
* Shift to class methods for RefreshServiceThong Kuah2018-12-051-1/+1
| | | | | As we don't use any instance attributes and we don't seem to have any commonalities between the cluster and the project variant.
* Create k8s namespace for project in group clustersThong Kuah2018-12-051-0/+12
AFAIK the only relevant place is Projects::CreateService, this gets called when user creates a new project, forks a new project and does those things via the api. Also create k8s namespace for new group hierarchy when transferring project between groups Uses new Refresh service to create k8s namespaces - Ensure we use Cluster#cluster_project If a project has multiple clusters (EE), using Project#cluster_project is not guaranteed to return the cluster_project for this cluster. So switch to using Cluster#cluster_project - at this stage a cluster can only have 1 cluster_project. Also, remove rescue so that sidekiq can retry