Skip to content

fix: COO-1282: avoid loop while setting plugin status#1017

Merged
openshift-merge-bot[bot] merged 1 commit intorhobs:mainfrom
jgbernalp:fix-status-update-for-ui-plugin
Mar 4, 2026
Merged

fix: COO-1282: avoid loop while setting plugin status#1017
openshift-merge-bot[bot] merged 1 commit intorhobs:mainfrom
jgbernalp:fix-status-update-for-ui-plugin

Conversation

@jgbernalp
Copy link
Member

No description provided.

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Mar 3, 2026

@jgbernalp: This pull request references COO-1282 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.22.0" version, but no target version was set.

Details

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.

@openshift-ci openshift-ci bot requested a review from lihongyan1 March 3, 2026 13:52
@openshift-ci
Copy link

openshift-ci bot commented Mar 3, 2026

[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

Details 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

@openshift-ci openshift-ci bot added the approved label Mar 3, 2026
@jgbernalp jgbernalp force-pushed the fix-status-update-for-ui-plugin branch 3 times, most recently from 29238ff to c794634 Compare March 3, 2026 14:16
LastTransitionTime: metav1.Now(),
},
}
meta.SetStatusCondition(&pl.Status.Conditions, metav1.Condition{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SetStatusCondition returns a boolean that indicates if it was updated successfully or not. Should we look to handle these returns?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return value here represents if something changed or not. Not if it was an actual error, as this just mutates the conditions.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So tracking this can avoid the if reflect.DeepEqual(oldStatus.Conditions, pl.Status.Conditions) {?

Not saying this needs changing but that seems at least like a good followup if correct.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. I misread Peter's initial comment.

fixes: COO-1282

Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
@jgbernalp jgbernalp force-pushed the fix-status-update-for-ui-plugin branch from c794634 to b494240 Compare March 3, 2026 15:05
@PeterYurkovich
Copy link
Member

/lgtm

@jgbernalp
Copy link
Member Author

/test observability-operator-e2e

@jgbernalp
Copy link
Member Author

/override ci/prow/observability-operator-e2e

@openshift-ci
Copy link

openshift-ci bot commented Mar 4, 2026

@jgbernalp: Overrode contexts on behalf of jgbernalp: ci/prow/observability-operator-e2e

Details

In response to this:

/override ci/prow/observability-operator-e2e

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.

@openshift-merge-bot openshift-merge-bot bot merged commit 1ca11e6 into rhobs:main Mar 4, 2026
11 checks passed
github-actions bot pushed a commit that referenced this pull request Mar 4, 2026
fixes: COO-1282

Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
@jgbernalp
Copy link
Member Author

/cherry-pick release-1.4

@openshift-cherrypick-robot

@jgbernalp: new pull request created: #1019

Details

In response to this:

/cherry-pick release-1.4

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.

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.

5 participants