-
Notifications
You must be signed in to change notification settings - Fork 52
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
[WIP] Split up "pod" images and managed container images #224
base: master
Are you sure you want to change the base?
[WIP] Split up "pod" images and managed container images #224
Conversation
def self.disconnect_inv(ids) | ||
_log.info "Disconnecting Images [#{ids}]" | ||
base_class.where(:id => ids).update_all(:container_image_registry_id => nil, :deleted_on => Time.now.utc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO not sure why this is necessary, when the ContainerImage.disconnect_inv
method is run from the context of the ManageIQ::Providers::Openshift::ContainerManager::ContainerImage
class where
isn't picking up on the child classes. Suspect something to do with the ActsAsStiLeafClass
but need to investigate more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this is due to ActsAsStiLeafClass using just [sti_class]
for the type clause
Could you update the issue description?
That states the before, could you share what the after value will be? |
This pull request has been automatically marked as stale because it has not been updated for at least 3 months. If these changes are still valid, please remove the Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation. |
This pull request has been automatically closed because it has not been updated for at least 3 months. Feel free to reopen this pull request if these changes are still valid. Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation. |
Checked commits agrare/manageiq-providers-openshift@5b83538~...94ed605 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint app/models/manageiq/providers/openshift/container_manager/container_image.rb
app/models/manageiq/providers/openshift/container_manager/managed_container_image.rb
|
This pull request is not mergeable. Please rebase and repush. |
Container Images on OpenShift come from two different sources, the first is from the
/apis/image.openshift.io/v1
API and the second is from pods. If a pod is using an image which isn't in the/apis/image.openshift.io/v1
we create a new "unmanaged" container image record. Currently these are of the type::ContainerImage
.Cross-repo Tests: ManageIQ/manageiq-cross_repo-tests#632
Depends on: