-
Notifications
You must be signed in to change notification settings - Fork 153
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: Add support for OpenShift console on native Kubernetes #2996
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @AaronDewes. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Hi @AaronDewes. Thanks for your PR. I'm waiting for a kubevirt member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: Aaron Dewes <[email protected]>
03e9b92
to
63bebed
Compare
Quality Gate passedIssues Measures |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
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.
Thanks for the PR @AaronDewes. It makes a lot of sense to me.
Added a few inline comments.
c.logger.Info("Cluster type = kubernetes") | ||
c.runningWithOpenshiftConsole = isCRDExists(ctx, cl, OpenShiftConsolePluginCRDName) |
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.
Is that enough? Shouldn't we also check that the CR also exists?
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.
The OpenShiftConsolePlugin
custom resource allows us to register a console plugin. I don't think we need to check if any CR exists as long as the CRD exists.
@@ -43,7 +44,8 @@ type ClusterInfo interface { | |||
} | |||
|
|||
type ClusterInfoImp struct { | |||
runningInOpenshift bool | |||
runningInNativeOpenshift bool |
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 wouldn't change the name of this field. We want to know if HCO is running in an openshift cluster or not, and this the old name is accurate. Also, I don't know what "native openshift" means.
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, I'll revert the name change 👍
@@ -43,7 +44,8 @@ type ClusterInfo interface { | |||
} | |||
|
|||
type ClusterInfoImp struct { | |||
runningInOpenshift bool | |||
runningInNativeOpenshift bool | |||
runningWithOpenshiftConsole bool |
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.
HCO and the openshift console are not actually related. so it's not like HCO is running with the console. What do you think about something like openshiftConsoleInstalled
?
return c.runningInNativeOpenshift | ||
} | ||
|
||
func (c *ClusterInfoImp) HasOpenshiftConsole() bool { |
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.
same: How do you feel about something like IsOpenshifConsoleInstalled()
?
@@ -59,16 +59,19 @@ func NewOperandHandler(client client.Client, scheme *runtime.Scheme, ci hcoutil. | |||
newAAQHandler(client, scheme), | |||
} | |||
|
|||
if ci.IsOpenshift() { | |||
if ci.HasOpenshiftConsole() { |
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.
not sure about this whole logic. @tiraboschi - WDYT?
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 don't think that the SSP operator (line 64) will work on vanially k8s just because the Openshift Console has been deployed there.
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with /lifecycle rotten |
What this PR does / why we need it:
OpenShift's console can be run on standard Kubernetes. This adds support for the console integration in such scenarios.
Reviewer Checklist
Jira Ticket:
Release note: