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

Ignore time in ManagedFields when processing events from dependent resources #59

Conversation

fabianvf
Copy link
Member

@fabianvf fabianvf commented Apr 29, 2021

Description of the change:
Ignores time in ManagedFields when determining whether events should be skipped. This gets us back the behavior we had before managedFields were added, as when the kubelet updates the resourceVersion it also updates the time in its managedFields entry.

Motivation for the change:
We've had users reporting infinite reconciliation and this is likely the culprit.

Fixes operator-framework/operator-sdk#3950
Fixes operator-framework/operator-sdk#4258

@coveralls
Copy link

coveralls commented Apr 29, 2021

Pull Request Test Coverage Report for Build 796717230

  • 13 of 13 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.7%) to 79.187%

Totals Coverage Status
Change from base Build 709538316: 0.7%
Covered Lines: 331
Relevant Lines: 418

💛 - Coveralls

@fabianvf fabianvf force-pushed the dependent-managed-fields branch 2 times, most recently from e409807 to 95bad8f Compare April 29, 2021 16:10
…sources

Signed-off-by: Fabian von Feilitzsch <fabian@fabianism.us>
Copy link
Member

@jmrodri jmrodri left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 29, 2021
@jmrodri
Copy link
Member

jmrodri commented Apr 29, 2021

/approved

@jmrodri
Copy link
Member

jmrodri commented Apr 29, 2021

/approve

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jmrodri

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-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 29, 2021
@openshift-merge-robot openshift-merge-robot merged commit 064486c into operator-framework:main Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
5 participants