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

[18.0.0-proposed] Restore LastTransitionTime after setting Ready Condition #980

Conversation

openshift-cherrypick-robot

This is an automated cherry-pick of #979

/assign rabi

instance.Status.Conditions.MarkTrue() always sets the current
time as the LastTransitionTime and this results in infinite
loop as the LastTransitionTime changes after every reconcile.

I think this issue is there in many other operator controllers,
but we don't see the issue as the next reconcile is probably too
quick to not change the LastTransitionTime(precision for which is
in seconds). The issue showed up in dataplane controllers as we
reconcile a number of services in a loop for every reconcile of
nodeset.

This seems to have been changes in other controllers of this
operator with
openstack-k8s-operators#768.

Signed-off-by: rabi <[email protected]>
@openshift-ci openshift-ci bot added the lgtm label Jul 27, 2024
Copy link
Contributor

openshift-ci bot commented Jul 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, rabi

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

@openshift-merge-bot openshift-merge-bot bot merged commit 317f1a4 into openstack-k8s-operators:18.0.0-proposed Jul 27, 2024
9 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.

2 participants