Skip to content

Commit

Permalink
Merge pull request #514 from jrafanie/drop_require_nested_include_con…
Browse files Browse the repository at this point in the history
…cern

Drop require_nested
  • Loading branch information
agrare authored Feb 6, 2024
2 parents 4c1357d + 28b27f3 commit 7768fa8
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 44 deletions.
14 changes: 0 additions & 14 deletions app/models/manageiq/providers/kubernetes/container_manager.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
class ManageIQ::Providers::Kubernetes::ContainerManager < ManageIQ::Providers::ContainerManager
require_nested :Container
require_nested :ContainerGroup
require_nested :ContainerNode
require_nested :ContainerTemplate
require_nested :EventCatcher
require_nested :EventCatcherMixin
require_nested :EventParser
require_nested :MetricsCapture
require_nested :MetricsCollectorWorker
require_nested :RefreshWorker
require_nested :Refresher
require_nested :Scanning
require_nested :Options

DEFAULT_PORT = 6443
METRICS_ROLES = %w[prometheus].freeze

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
class ManageIQ::Providers::Kubernetes::ContainerManager::EventCatcher < ManageIQ::Providers::BaseManager::EventCatcher
require_nested :Runner
end
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ def log_severity
end
end

require_nested :PrometheusCaptureContext

INTERVAL = 60.seconds

VIM_STYLE_COUNTERS = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module ManageIQ::Providers
class Kubernetes::ContainerManager::MetricsCollectorWorker < BaseManager::MetricsCollectorWorker
require_nested :Runner

self.default_queue_name = "kubernetes"

def friendly_name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
class ManageIQ::Providers::Kubernetes::ContainerManager::RefreshWorker < ManageIQ::Providers::BaseManager::RefreshWorker
require_nested :Runner
require_nested :WatchThread
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
class ManageIQ::Providers::Kubernetes::ContainerManager::Scanning
require_nested :Job
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
autoload(:KubeException, 'kubeclient')

class ManageIQ::Providers::Kubernetes::ContainerManager::Scanning::Job < Job
require_nested :Dispatcher

PROVIDER_CLASS = ManageIQ::Providers::Kubernetes::ContainerManager
INSPECTOR_IMAGE_TAG = '2.1'.freeze
INSPECTOR_PORT = 8080
Expand Down
3 changes: 0 additions & 3 deletions app/models/manageiq/providers/kubernetes/inventory.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
class ManageIQ::Providers::Kubernetes::Inventory < ManageIQ::Providers::Inventory
require_nested :Collector
require_nested :Parser
require_nested :Persister
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class ManageIQ::Providers::Kubernetes::Inventory::Collector < ManageIQ::Providers::Inventory::Collector
require_nested :ContainerManager

def connect!(service)
manager.connect(:service => service)
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class ManageIQ::Providers::Kubernetes::Inventory::Collector::ContainerManager < ManageIQ::Providers::Kubernetes::Inventory::Collector
require_nested :WatchNotice

def additional_attributes
@additional_attributes ||= {} # TODO: is this used?
end
Expand Down
2 changes: 0 additions & 2 deletions app/models/manageiq/providers/kubernetes/inventory/parser.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class ManageIQ::Providers::Kubernetes::Inventory::Parser < ManageIQ::Providers::Inventory::Parser
require_nested :ContainerManager

def refresher_options
Settings.ems_refresh[persister.manager.class.ems_type]
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
require 'shellwords'

class ManageIQ::Providers::Kubernetes::Inventory::Parser::ContainerManager < ManageIQ::Providers::Kubernetes::Inventory::Parser
require_nested :WatchNotice

include Vmdb::Logging
include ManageIQ::Providers::Kubernetes::ContainerManager::EntitiesMapping

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
class ManageIQ::Providers::Kubernetes::Inventory::Persister < ManageIQ::Providers::Inventory::Persister
require_nested :ContainerManager
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class ManageIQ::Providers::Kubernetes::Inventory::Persister::ContainerManager < ManageIQ::Providers::Kubernetes::Inventory::Persister
require_nested :WatchNotice

include ManageIQ::Providers::Kubernetes::Inventory::Persister::Definitions::ContainerCollections

attr_reader :tag_mapper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module ManageIQ::Providers
class Kubernetes::MonitoringManager < ManageIQ::Providers::MonitoringManager
require_nested :EventCatcher

ENDPOINT_ROLE = :prometheus_alerts


Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
class ManageIQ::Providers::Kubernetes::MonitoringManager::EventCatcher < ManageIQ::Providers::BaseManager::EventCatcher
require_nested :Runner
require_nested :RunnerMixin
require_nested :Stream

def self.settings_name
:event_catcher_prometheus
end
Expand Down

0 comments on commit 7768fa8

Please sign in to comment.