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

ScaledObject.Status update should handle stale resource #582

Merged
merged 1 commit into from
Jan 30, 2020

Conversation

zroubalik
Copy link
Member

Some ScaledObject changes like editing or adding a label don't change generation, therefore the resource will become stale, if we try to update it's Status in the ScaleLoop.

This adds a check on this particullar situation and try to re-fetch the ScaledObject if necessary.

Fixes #512

@zroubalik zroubalik added this to the v1.2 milestone Jan 29, 2020
Copy link
Contributor

@ahmelsayed ahmelsayed left a comment

Choose a reason for hiding this comment

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

one typo, but LGTM otherwise.

@zroubalik
Copy link
Member Author

one typo, but LGTM otherwise.

Fixed, thx

@ahmelsayed ahmelsayed changed the title ScaledObject Status update should handle stale resource ScaledObject.Status update should handle stale resource Jan 30, 2020
@ahmelsayed ahmelsayed merged commit 2dd1333 into kedacore:master Jan 30, 2020
melmaliacone pushed a commit to melmaliacone/keda that referenced this pull request Jan 31, 2020
@zroubalik zroubalik deleted the scaledStatus branch August 11, 2020 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doesn't reconcile on ScaledObject updates that don't change generation
2 participants