Skip to content

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

Merged
gdsoumya merged 1 commit intorelease-2.12from
cherry-pick-3b81a4-release-2.12
Sep 19, 2024
Merged

fix(appset): Fix perpetual appset reconciliation (cherry-pick #19822)#19995
gdsoumya merged 1 commit intorelease-2.12from
cherry-pick-3b81a4-release-2.12

Conversation

@gcp-cherry-pick-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 thibault.jamet@adevinta.com
Signed-off-by: Fabián Sellés fabian.selles@adevinta.com
Co-authored-by: Fabian Selles fabian.sellesrosa@gmail.com
Co-authored-by: Ariadna Rouco ariadna.rouco@adevinta.com

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 <thibault.jamet@adevinta.com>
Signed-off-by: Fabián Sellés <fabian.selles@adevinta.com>
Co-authored-by: Fabian Selles <fabian.sellesrosa@gmail.com>
Co-authored-by: Ariadna Rouco <ariadna.rouco@adevinta.com>
@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
@gdsoumya gdsoumya deleted the cherry-pick-3b81a4-release-2.12 branch September 19, 2024 07:41
@agaudreault
Copy link
Member

@gdsoumya did you create a follow-up PR to fix the failing unit tests? I was gonna do that today.

@gdsoumya
Copy link
Member

@agaudreault I think it's safe to merge these cherry pick PRs, as far as I know often the tests keep failing for cherry pick PRs #19570 (comment)

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