Skip to content

Fix old job replacement - #339

Merged
brandond merged 2 commits into
k3s-io:masterfrom
brandond:fix-reconcile-synced
Jul 16, 2026
Merged

Fix old job replacement#339
brandond merged 2 commits into
k3s-io:masterfrom
brandond:fix-reconcile-synced

Conversation

@brandond

@brandond brandond commented Jul 16, 2026

Copy link
Copy Markdown
Member

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 active, failed, and successful jobs.

@brandond
brandond force-pushed the fix-reconcile-synced branch 4 times, most recently from e449f0b to 4cdcfde Compare July 16, 2026 21:08
@brandond
brandond force-pushed the fix-reconcile-synced branch 3 times, most recently from 29f6cc6 to b5de8f5 Compare July 16, 2026 22:33
brandond added 2 commits July 16, 2026 22:43
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>
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond
brandond force-pushed the fix-reconcile-synced branch from b5de8f5 to 161ec4e Compare July 16, 2026 22:43
@brandond
brandond merged commit f6dd056 into k3s-io:master Jul 16, 2026
5 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