Skip to content

Commit

Permalink
Move has_one infra_manager into Kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Mar 1, 2024
1 parent e466992 commit f7b87fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/models/manageiq/providers/kubernetes/container_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ class ManageIQ::Providers::Kubernetes::ContainerManager < ManageIQ::Providers::C
DEFAULT_PORT = 6443
METRICS_ROLES = %w[prometheus].freeze

has_one :infra_manager,
:foreign_key => :parent_ems_id,
:class_name => "ManageIQ::Providers::Kubevirt::InfraManager",
:autosave => true,
:inverse_of => :parent_manager,
:dependent => :destroy

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

Expand Down

0 comments on commit f7b87fe

Please sign in to comment.