-
Notifications
You must be signed in to change notification settings - Fork 59
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
COO-225: fix: Add support for ConsolePlugin v1 #530
COO-225: fix: Add support for ConsolePlugin v1 #530
Conversation
@jgbernalp: This pull request references COO-225 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.17.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jgbernalp The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
d57b75b
to
e3ae8d6
Compare
e3ae8d6
to
3c9ec68
Compare
@@ -45,14 +48,32 @@ var ( | |||
korrel8rConfigYAMLTmplFile embed.FS | |||
) | |||
|
|||
func pluginComponentReconcilers(plugin *uiv1alpha1.UIPlugin, pluginInfo UIPluginInfo) []reconciler.Reconciler { | |||
func isClusterVersionAheadOrEqual(clusterVersion, nextClusterVersion string) 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.
a nitpicking, feels the variable names of isClusterVersionAheadOrEqual is unreasonable and confusing, maybe better change as func isClusterVersionAheadOrEqual(currentClusterVersion, clusterVersion string) 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.
Yeah I agree, the naming is awkward currently. I see how future devs might think the clusterVersion in the name is related to the variable name.
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.
updated to func isVersionAheadOrEqual(currentVersion, version string) bool {
Verified the bug COO-225 with this PR, the issue is gone on OCP4.17 |
d63783d
to
3fcfbf0
Compare
3fcfbf0
to
9ce360b
Compare
/lgtm |
/lgtm |
This PR adds support for ConsolePlugin CR v1 for OCP 4.17. For older versions the v1alpha1 support was kept