Skip to content
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

Merged

Conversation

jgbernalp
Copy link
Contributor

This PR adds support for ConsolePlugin CR v1 for OCP 4.17. For older versions the v1alpha1 support was kept

@jgbernalp jgbernalp requested a review from a team as a code owner July 10, 2024 11:15
@jgbernalp jgbernalp requested review from jan--f and sthaha and removed request for a team July 10, 2024 11:15
@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Jul 10, 2024

@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:

This PR adds support for ConsolePlugin CR v1 for OCP 4.17. For older versions the v1alpha1 support was kept

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.

Copy link

openshift-ci bot commented Jul 10, 2024

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jgbernalp jgbernalp force-pushed the add-support-for-console-plugin-v1 branch from d57b75b to e3ae8d6 Compare July 10, 2024 11:50
@jgbernalp jgbernalp changed the title COO-225: Add support for ConsolePlugin v1 COO-225: fix: Add support for ConsolePlugin v1 Jul 10, 2024
@jgbernalp jgbernalp force-pushed the add-support-for-console-plugin-v1 branch from e3ae8d6 to 3c9ec68 Compare July 10, 2024 12:53
@@ -45,14 +48,32 @@ var (
korrel8rConfigYAMLTmplFile embed.FS
)

func pluginComponentReconcilers(plugin *uiv1alpha1.UIPlugin, pluginInfo UIPluginInfo) []reconciler.Reconciler {
func isClusterVersionAheadOrEqual(clusterVersion, nextClusterVersion string) bool {
Copy link
Contributor

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 {

Copy link
Collaborator

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.

Copy link
Contributor Author

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 {

@lihongyan1
Copy link
Contributor

lihongyan1 commented Jul 15, 2024

Verified the bug COO-225 with this PR, the issue is gone on OCP4.17

@jgbernalp jgbernalp force-pushed the add-support-for-console-plugin-v1 branch 2 times, most recently from d63783d to 3fcfbf0 Compare July 18, 2024 09:25
@jgbernalp jgbernalp force-pushed the add-support-for-console-plugin-v1 branch from 3fcfbf0 to 9ce360b Compare July 18, 2024 10:26
@lihongyan1
Copy link
Contributor

/lgtm

@jan--f
Copy link
Collaborator

jan--f commented Jul 18, 2024

/lgtm
Thanks!

@openshift-merge-bot openshift-merge-bot bot merged commit dc492f6 into rhobs:main Jul 18, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants