summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorTiger <twatson@gitlab.com>2019-04-11 13:26:10 +1000
committerTiger <twatson@gitlab.com>2019-05-16 20:18:42 -0500
commitfa5a6ae172584c5c33665a6efa4a6aa4efaea9ad (patch)
treee24b9715ffd352f5285b46c4f1780ec2b173f141 /app/workers
parente9ed028472747422670fed448624bb3e067fb4e2 (diff)
downloadgitlab-ce-fa5a6ae172584c5c33665a6efa4a6aa4efaea9ad.tar.gz
Stop configuring group clusters on creation60379-remove-ci-preparing-state-feature-flag
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.
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/cluster_configure_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/cluster_configure_worker.rb b/app/workers/cluster_configure_worker.rb
index 37ea7dde7a1..6f64b7ea0ab 100644
--- a/app/workers/cluster_configure_worker.rb
+++ b/app/workers/cluster_configure_worker.rb
@@ -6,7 +6,7 @@ class ClusterConfigureWorker
def perform(cluster_id)
Clusters::Cluster.managed.find_by_id(cluster_id).try do |cluster|
- if cluster.project_type? || Feature.disabled?(:ci_preparing_state, default_enabled: true)
+ if cluster.project_type?
Clusters::RefreshService.create_or_update_namespaces_for_cluster(cluster)
end
end