Skip to content

Commit 8ba3d17

Browse files
committed
Add after_update_endpoints to restart RefreshWorker
1 parent 907308b commit 8ba3d17

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app/models/manageiq/providers/kubernetes/container_manager.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class ManageIQ::Providers::Kubernetes::ContainerManager < ManageIQ::Providers::C
1818

1919
include ManageIQ::Providers::Kubernetes::ContainerManager::Options
2020

21-
before_save :stop_event_monitor_queue_on_change, :stop_refresh_worker_queue_on_change
2221
before_destroy :stop_event_monitor, :stop_refresh_worker
2322

2423
supports :create
@@ -976,9 +975,14 @@ def verify_credentials(auth_type = nil, options = {})
976975
end
977976
end
978977

979-
def after_update_authentication
978+
def after_update_authentication(changes)
980979
super
981-
stop_refresh_worker_queue_on_credential_change
980+
stop_refresh_worker_queue_on_credential_change(changes)
981+
end
982+
983+
def after_update_endpoints(changes)
984+
super
985+
stop_refresh_worker_queue_on_change(changes)
982986
end
983987

984988
def ensure_authentications_record

0 commit comments

Comments
 (0)