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

Use images to get registry pods using the registry instead of running it. #18148

Merged
Merged
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
8 changes: 7 additions & 1 deletion app/models/container_image_registry.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
class ContainerImageRegistry < ApplicationRecord
belongs_to :ext_management_system, :foreign_key => "ems_id"

# Associated with images in the registry.
has_many :container_images, :dependent => :nullify
has_many :containers, :through => :container_images
has_many :container_groups, :through => :container_images

# Associated with serving the registry itself - for openshift's internal
# image registry. These will be empty for external registries.
has_many :container_services
has_many :container_groups, :through => :container_services
has_many :service_container_groups, :through => :container_services, :as => :container_groups

acts_as_miq_taggable
virtual_column :full_name, :type => :string
Expand Down