Skip to content

[INFRA-5852] Handle CronJob upgrade via active Job Pod deletion#1

Merged
trvrnrth merged 1 commit intomasterfrom
cronjob-restart-via-pod-delete
Mar 25, 2026
Merged

[INFRA-5852] Handle CronJob upgrade via active Job Pod deletion#1
trvrnrth merged 1 commit intomasterfrom
cronjob-restart-via-pod-delete

Conversation

@trvrnrth
Copy link
Copy Markdown

@trvrnrth trvrnrth commented Mar 25, 2026

Instead of immediately creating new Jobs we will instead delete pods belonging to active Jobs. This will cause the job controller to re-create the pods based on the defined policies.

As such we will not violate the CronJob schedule, suspension and concurrency policies.

Note: This also exists as an upstream PR at stakater#1098

Instead of immediately creating new Jobs we will instead delete pods
belonging to active Jobs. This will cause the job controller to re-create
the pods based on the defined policies.

As such we will not violate the CronJob schedule, suspension and concurrency
policies.
@trvrnrth trvrnrth requested review from foygl and sazap10 March 25, 2026 10:23
@trvrnrth trvrnrth changed the title Handle CronJob upgrade via active Job Pod deletion [INFRA-5852] Handle CronJob upgrade via active Job Pod deletion Mar 25, 2026
@trvrnrth trvrnrth merged commit 16c8dd5 into master Mar 25, 2026
2 checks passed
@trvrnrth trvrnrth deleted the cronjob-restart-via-pod-delete branch March 25, 2026 10:43
trvrnrth added a commit that referenced this pull request Mar 25, 2026
Instead of immediately creating new Jobs we will instead delete pods
belonging to active Jobs. This will cause the job controller to re-create
the pods based on the defined policies.

As such we will not violate the CronJob schedule, suspension and concurrency
policies.
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.

2 participants