Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add after_update_endpoints to restart RefreshWorker #479

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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