Skip to content

endpoint/manager: wait for completed endpoint restoration before starting periodic GC & regeneration controllers #43776

Merged
julianwiedmann merged 1 commit intocilium:mainfrom
mhofstetter:pr/mhofstetter/epmgr-wait-with-ep-gc-until-restored
Jan 15, 2026
Merged

endpoint/manager: wait for completed endpoint restoration before starting periodic GC & regeneration controllers #43776
julianwiedmann merged 1 commit intocilium:mainfrom
mhofstetter:pr/mhofstetter/epmgr-wait-with-ep-gc-until-restored

Conversation

@mhofstetter
Copy link
Copy Markdown
Member

@mhofstetter mhofstetter commented Jan 15, 2026

Currently, the periodic controllers for endpoint garbage collection and endpoint
regeneration are registered at startup - without waiting for the completion
of the endpoint restoration (incl. regeneration) at startup.

This might lead to problems where the premature endpoint regeneration interfers
with the endpoint restoration (incl. processing the deletion queue).

This commit fixes this by moving the controller registration into a hive job
that waits for the completion of the endpoint restoration.

Builds on top of another bugfix: #43790

Note: Refactoring the logic to use Hive Jobs instead of controllers will be done in a follow up PR

@mhofstetter mhofstetter added the release-note/misc This PR makes changes that have no direct user impact. label Jan 15, 2026
@mhofstetter mhofstetter changed the title endpoint/gc: wait with periodic ep gc until restored endpoint/manager: wait with periodic EP GC & restoration until restored Jan 15, 2026
@mhofstetter mhofstetter changed the title endpoint/manager: wait with periodic EP GC & restoration until restored endpoint/manager: wait with periodic EP GC & regeneration until restored Jan 15, 2026
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/epmgr-wait-with-ep-gc-until-restored branch from 256ea65 to 38776aa Compare January 15, 2026 13:02
@mhofstetter mhofstetter added kind/bug This is a bug in the Cilium logic. release-note/bug This PR fixes an issue in a previous release of Cilium. and removed release-note/misc This PR makes changes that have no direct user impact. labels Jan 15, 2026
@mhofstetter mhofstetter changed the title endpoint/manager: wait with periodic EP GC & regeneration until restored endpoint/manager: wait for completed endpoint restoration until starting periodic GC & regeneration controllers Jan 15, 2026
@mhofstetter mhofstetter added the dont-merge/blocked Another PR must be merged before this one. label Jan 15, 2026
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/epmgr-wait-with-ep-gc-until-restored branch from 38776aa to 93f9599 Compare January 15, 2026 13:12
@mhofstetter
Copy link
Copy Markdown
Member Author

/test

@mhofstetter mhofstetter changed the title endpoint/manager: wait for completed endpoint restoration until starting periodic GC & regeneration controllers endpoint/manager: wait for completed endpoint restoration before starting periodic GC & regeneration controllers Jan 15, 2026
@mhofstetter mhofstetter added the needs-backport/1.19 This PR / issue needs backporting to the v1.19 branch label Jan 15, 2026
Currently, the periodic controllers for endpoint garbage collection and endpoint
regeneration are registered at startup - without waiting for the completion
of the endpoint restoration (incl. regeneration) at startup.

This might lead to problems where the premature endpoint regeneration interfers
with the endpoint restoration (incl. processing the deletion queue).

This commit fixes this by moving the controller registration into a hive job
that waits for the completion of the endpoint restoration.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/epmgr-wait-with-ep-gc-until-restored branch from 93f9599 to f0f31ee Compare January 15, 2026 15:28
@mhofstetter mhofstetter requested a review from gandro January 15, 2026 15:28
@mhofstetter
Copy link
Copy Markdown
Member Author

rebased after merging dependent PR. re-requesting reviews and undrafted.

@mhofstetter mhofstetter marked this pull request as ready for review January 15, 2026 15:29
@mhofstetter mhofstetter requested a review from a team as a code owner January 15, 2026 15:29
@mhofstetter mhofstetter removed the dont-merge/blocked Another PR must be merged before this one. label Jan 15, 2026
@mhofstetter
Copy link
Copy Markdown
Member Author

/test

Copy link
Copy Markdown
Member

@fristonio fristonio left a comment

Choose a reason for hiding this comment

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

Thanks <3

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jan 15, 2026
@julianwiedmann julianwiedmann added this pull request to the merge queue Jan 15, 2026
Merged via the queue into cilium:main with commit 13bed6d Jan 15, 2026
80 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/epmgr-wait-with-ep-gc-until-restored branch January 16, 2026 07:30
@giorio94 giorio94 mentioned this pull request Jan 19, 2026
8 tasks
@giorio94 giorio94 added backport-pending/1.19 The backport for Cilium 1.19.x for this PR is in progress. and removed needs-backport/1.19 This PR / issue needs backporting to the v1.19 branch labels Jan 19, 2026
@github-actions github-actions bot added backport-done/1.19 The backport for Cilium 1.19.x for this PR is done. and removed backport-pending/1.19 The backport for Cilium 1.19.x for this PR is in progress. labels Jan 19, 2026
@cilium-release-bot cilium-release-bot bot moved this to Released in cilium v1.19.0 Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-done/1.19 The backport for Cilium 1.19.x for this PR is done. kind/bug This is a bug in the Cilium logic. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium.

Projects

No open projects
Status: Released

Development

Successfully merging this pull request may close these issues.

6 participants