Skip to content

[release/0.16] Fix old job replacement - #340

Merged
brandond merged 2 commits into
k3s-io:release/0.16from
brandond:fix-reconcile-synced_release-0.16
Jul 17, 2026
Merged

[release/0.16] Fix old job replacement#340
brandond merged 2 commits into
k3s-io:release/0.16from
brandond:fix-reconcile-synced_release-0.16

Conversation

@brandond

Copy link
Copy Markdown
Member

brandond added 2 commits July 16, 2026 23:16
The controller would never replace jobs created by older versions of helm-controller that hadn't been suspended. We now reenqueue replacement until the job has no running pods, and suspend the job to cleanly stop pods before deleting it.

There are also new tests to validate replacement of old failed and successful jobs.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit cbea780)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit f6dd056)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond changed the title Fix reconcile synced release 0.16 [release/0.16] Fix old job replacement Jul 16, 2026
@brandond
brandond merged commit 8510341 into k3s-io:release/0.16 Jul 17, 2026
10 of 13 checks passed
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