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

fix(appset): Fix perpetual appset reconciliation (cherry-pick #19822) #19995

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

gcp-cherry-pick-bot[bot]
Copy link

Cherry-picked fix(appset): Fix perpetual appset reconciliation (#19822)

Golang maps do not guarantee the order of the application resources
from the applicationset which causes rapid sync activity for the applicationset
as the objects and hence their resourceVersions are updated after each reconcile loop.

This then triggers reconciliation of all objects watching the
ApplicationSet.

In order to prevent this behaviour, ensure that the ApplicationSet
reconciler provides an idempotent list of resources, ensuring objects
are not updated.

Fixes: #19757

Signed-off-by: Thibault Jamet [email protected]
Signed-off-by: Fabián Sellés [email protected]
Co-authored-by: Fabian Selles [email protected]
Co-authored-by: Ariadna Rouco [email protected]

Golang maps do not guarantee the order of the application resources
from the applicationset which causes rapid sync activity for the applicationset
as the objects and hence their resourceVersions are updated after each reconcile loop.

This then triggers reconciliation of all objects watching the
ApplicationSet.

In order to prevent this behaviour, ensure that the ApplicationSet
reconciler provides an idempotent list of resources, ensuring objects
are not updated.

Fixes: #19757

Signed-off-by: Thibault Jamet <[email protected]>
Signed-off-by: Fabián Sellés <[email protected]>
Co-authored-by: Fabian Selles <[email protected]>
Co-authored-by: Ariadna Rouco <[email protected]>
@gcp-cherry-pick-bot gcp-cherry-pick-bot bot requested a review from a team as a code owner September 18, 2024 23:58
@gdsoumya gdsoumya merged commit 1568165 into release-2.12 Sep 19, 2024
16 of 23 checks passed
@gdsoumya gdsoumya deleted the cherry-pick-3b81a4-release-2.12 branch September 19, 2024 07:41
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.

3 participants