diff options
author | Tiger <twatson@gitlab.com> | 2019-04-11 06:26:10 +0300 |
---|---|---|
committer | Tiger <twatson@gitlab.com> | 2019-05-17 04:18:42 +0300 |
commit | fa5a6ae172584c5c33665a6efa4a6aa4efaea9ad (patch) | |
tree | e24b9715ffd352f5285b46c4f1780ec2b173f141 /app/services/projects/create_service.rb | |
parent | e9ed028472747422670fed448624bb3e067fb4e2 (diff) |
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.
Diffstat (limited to 'app/services/projects/create_service.rb')
-rw-r--r-- | app/services/projects/create_service.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/app/services/projects/create_service.rb b/app/services/projects/create_service.rb index 4ea40e3c8ce..9f335cceb67 100644 --- a/app/services/projects/create_service.rb +++ b/app/services/projects/create_service.rb @@ -100,8 +100,6 @@ module Projects current_user.invalidate_personal_projects_count create_readme if @initialize_with_readme - - configure_group_clusters_for_project end # Refresh the current user's authorizations inline (so they can access the @@ -127,10 +125,6 @@ module Projects Files::CreateService.new(@project, current_user, commit_attrs).execute end - def configure_group_clusters_for_project - ClusterProjectConfigureWorker.perform_async(@project.id) - end - def skip_wiki? !@project.feature_available?(:wiki, current_user) || @skip_wiki end |