From bd34a5cb837809c79050ca61dee30f53096433e7 Mon Sep 17 00:00:00 2001 From: Nasar Khan Date: Thu, 31 Oct 2024 12:32:25 -0400 Subject: [PATCH 1/2] delegate child manager refresh_ems to parent container manager --- app/models/manageiq/providers/openshift/infra_manager.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/manageiq/providers/openshift/infra_manager.rb b/app/models/manageiq/providers/openshift/infra_manager.rb index 3e98cb2..f063770 100644 --- a/app/models/manageiq/providers/openshift/infra_manager.rb +++ b/app/models/manageiq/providers/openshift/infra_manager.rb @@ -12,6 +12,10 @@ class ManageIQ::Providers::Openshift::InfraManager < ManageIQ::Providers::Kubevi supports :catalog supports :provisioning + class << self + delegate :refresh_ems, :to => ManageIQ::Providers::Openshift::ContainerManager + end + def self.ems_type @ems_type ||= "openshift_infra".freeze end From 7cd4d538533a31eb8187a0f15cad320cea8cbc87 Mon Sep 17 00:00:00 2001 From: Nasar Khan Date: Thu, 31 Oct 2024 12:32:35 -0400 Subject: [PATCH 2/2] disable scheduled refresh for child manager --- config/settings.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/settings.yml b/config/settings.yml index 448ed39..6cc2cb2 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -21,6 +21,8 @@ :saver_strategy: batch :get_container_images: true :store_unused_images: true + :openshift_infra: + :refresh_interval: 0 :workers: :worker_base: :event_catcher: