Skip to content

Commit

Permalink
Add after_update_endpoints to restart RefreshWorker
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Mar 14, 2023
1 parent 907308b commit 8ba3d17
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/models/manageiq/providers/kubernetes/container_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class ManageIQ::Providers::Kubernetes::ContainerManager < ManageIQ::Providers::C

include ManageIQ::Providers::Kubernetes::ContainerManager::Options

before_save :stop_event_monitor_queue_on_change, :stop_refresh_worker_queue_on_change
before_destroy :stop_event_monitor, :stop_refresh_worker

supports :create
Expand Down Expand Up @@ -976,9 +975,14 @@ def verify_credentials(auth_type = nil, options = {})
end
end

def after_update_authentication
def after_update_authentication(changes)
super
stop_refresh_worker_queue_on_credential_change
stop_refresh_worker_queue_on_credential_change(changes)
end

def after_update_endpoints(changes)
super
stop_refresh_worker_queue_on_change(changes)
end

def ensure_authentications_record
Expand Down

0 comments on commit 8ba3d17

Please sign in to comment.