Skip to content

fix: purge tmp dirs at startup - #1729

Merged
matheuscscp merged 1 commit into
mainfrom
purge-tmp
Aug 31, 2026
Merged

matheuscscp merged 1 commit into
mainfrom
purge-tmp

Conversation

@stefanprodan

@stefanprodan stefanprodan commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

This PR makes the controller remove the tmp dirs left behind by a previous process that exited without running its deferred cleanup. The dirs are listed synchronously, before the reconcilers start creating new ones, and removed in the background with a timeout of 2m so that the manager startup is not delayed.

Fixes: #1723
Supersedes: #1726

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan added bug Something isn't working backport:release/v1.9.x To be backported to release/v1.9.x labels Aug 31, 2026

@matheuscscp matheuscscp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@matheuscscp
matheuscscp merged commit 529c6ea into main Aug 31, 2026
9 checks passed
@matheuscscp
matheuscscp deleted the purge-tmp branch August 31, 2026 12:40
@fluxcdbot

Copy link
Copy Markdown
Member

Successfully created backport PR for release/v1.9.x:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:release/v1.9.x To be backported to release/v1.9.x bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kustomize-controller leaks /tmp/kustomization-* dirs after ungraceful exit

3 participants