Skip to content

Conversation

fabianvf
Copy link
Member

Fixes #2108

If the metadata.generation is 0, the event will now still trigger a
reconciliation.

Description of the change:

Motivation for the change:

Fixes operator-framework#2108

If the `metadata.generation` is `0`, the event will now still trigger a
reconciliation.
return false
}
if e.MetaNew.GetGeneration() == e.MetaOld.GetGeneration() {
if e.MetaNew.GetGeneration() == e.MetaOld.GetGeneration() && e.MetaNew.GetGeneration() != 0 {
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm pretty sure that this will only happen if the metadata.generation is not set and therefore goes to the default integer value of 0 when queried.

Copy link
Member

@estroz estroz 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 13, 2020
Copy link
Member

@joelanford joelanford left a comment

Choose a reason for hiding this comment

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

LGTM. We upstreamed this predicate, so we should make this change there as well... and we should deprecate this and switch.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Apr 13, 2020
@joelanford
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 14, 2020
@fabianvf fabianvf merged commit 2f298f7 into operator-framework:master Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Secret Watches fail to detect changes

4 participants