summaryrefslogtreecommitdiff
path: root/app/controllers/projects/clusters_controller.rb
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-02-23 09:08:12 +1100
committerDylan Griffith <dyl.griffith@gmail.com>2018-02-23 09:10:14 +1100
commit3b320d675fe058311d921e26cd89b2e703310b21 (patch)
treec8135b9041f238bc2d435fea26cf3c3dd6940cd8 /app/controllers/projects/clusters_controller.rb
parent17e85dacdd73b51a173d1f4c5efea5e20ee8c55b (diff)
downloadgitlab-ce-3b320d675fe058311d921e26cd89b2e703310b21.tar.gz
Simplify retrying for ClusterWaitForIngressIpAddressWorker and style changes
(#42643)
Diffstat (limited to 'app/controllers/projects/clusters_controller.rb')
-rw-r--r--app/controllers/projects/clusters_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects/clusters_controller.rb b/app/controllers/projects/clusters_controller.rb
index c351caeeb7b..aeaba3a0acf 100644
--- a/app/controllers/projects/clusters_controller.rb
+++ b/app/controllers/projects/clusters_controller.rb
@@ -4,7 +4,7 @@ class Projects::ClustersController < Projects::ApplicationController
before_action :authorize_create_cluster!, only: [:new]
before_action :authorize_update_cluster!, only: [:update]
before_action :authorize_admin_cluster!, only: [:destroy]
- before_action :sync_application_details, only: [:status]
+ before_action :update_applications_status, only: [:status]
STATUS_POLLING_INTERVAL = 10_000
@@ -116,7 +116,7 @@ class Projects::ClustersController < Projects::ApplicationController
access_denied! unless can?(current_user, :admin_cluster, cluster)
end
- def sync_application_details
- @cluster.applications.each(&:sync_details)
+ def update_applications_status
+ @cluster.applications.each(&:schedule_status_update)
end
end