-
Notifications
You must be signed in to change notification settings - Fork 897
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
Move Openshift specific code into its provider directory. #15523
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class ManageIQ::Providers::ContainerManager::ContainerTemplate < ContainerTemplate | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding this (now empty) subclass had an interesting consequence (that's breaking openshift refresh).
it apparently does such a const lookup (?), and the query now constrains
I can do
to get back the query
but I wonder what's the point of having both @lfu @Fryguy @kbrock @moolitayer please advice. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got curious if ContainerManager::OrchestrationStack relation is also affected.
Strange, this correctly includes the openshift descendants so seems harmless. Why doesn't the templates query?
... some false steps later ...
OMG, the provider-specific subclasses are not loaded! Const lookup is satisfied by finding this class instead, so no autoload.
=> Gonna add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cben Good catch 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (yay we resolved it, given ManageIQ/manageiq-providers-kubernetes#81 now ManageIQ/manageiq-providers-openshift#28 passes.) |
||
end |
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.
If this is Kubernetes specific code, why is it going in ManageIQ::Providers::ContainerManager::ContainerTemplate ?
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.
Thought these codes are for both Kubernetes and Openshift.
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.
Code in ManageIQ::Providers::ContainerManager is for any container manager...it could even be something like docker swarm in the future.
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.
Shared code for kubernetes and openshift should go into manageiq-providers-kubernetes.
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.
@Fryguy What is the relationship between
ManageIQ::Providers::Kubernetes::ContainerManager::ContainerTemplate
andManageIQ::Providers::Openshift::ContainerManager::ContainerTemplate
? Are they parallel?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.
I would expect them to be unrelated. They may share code via a shared module, but other than that, they are independent.
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.
Specifically templates are an Openshift addition, they don't exist in Kubernetes.
(they might in future, openshift concepts tend to get upstreamed, there is already a proposal)