[WIP] Split up "pod" images and managed container images#224
[WIP] Split up "pod" images and managed container images#224agrare wants to merge 3 commits intoManageIQ:masterfrom
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.
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.
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/v1API and the second is from pods. If a pod is using an image which isn't in the/apis/image.openshift.io/v1we 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: