556 Commits
Author SHA1 Message Date
Heba Elayoty c8c9191562 name-based for Job Workload/PodGroup discovery and management modes
Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com>
2026-11-03 19:49:54 +00:00
Heba Elayoty f2dba1341b Update imports to use WAS building blocks from scheduling/v1
Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com>
2026-10-31 16:47:27 +00:00
Heba Elayoty 290fc4ec32 make GeneratePodGroupName UID-aware for sibling Jobs
Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com>
2026-10-29 19:25:49 +00:00
Kevin Hannon ad13605eea avoid overflow issues for pod group templates 2026-10-21 10:58:21 -04:00
kubernetes-prow[bot] 21ed0975e2 Merge pull request #142922 from yankovitchg/fix/job-deleted-ready-on-failed-delete
Job: do not decrement Ready when pod delete fails
2026-10-12 19:48:17 +00:00
Guy Yankovitch d9d338d018 Fix job_pods_creation_total double-counting failed creates
Only increment creationsSucceeded when pod creation returns nil so a
failed attempt is not recorded as both failed and succeeded.
2026-10-11 23:04:17 +03:00
Guy Yankovitch a71b5d2483 Job: do not decrement Ready when pod delete fails
deleteActivePods and deleteJobPods counted ready pods as deleted even when
DeletePod returned an error, undercounting Job status.ready until the next
successful sync.
2026-10-11 16:34:44 +03:00
Michael Aspinwall 2b96ebcfe0 Move consistency store to client-go utils 2026-09-30 20:22:05 +00:00
6democratickim9 f8877e0611 job controller: extend recreation regression coverage 2026-09-21 23:34:43 +09:00
6democratickim9 f5a4cd1a58 job controller: clear expectations when deleting Job 2026-09-20 11:46:32 +09:00
kubernetes-prow[bot] 81bda630de Merge pull request #141718 from pohly/scheduler-client-go-context
kube-controller-manager: use context-aware client-go
2026-09-09 20:31:00 +00:00
kubernetes-prow[bot] 8f09e09802 Merge pull request #141557 from kannon92/workloader-builder-name
implement generateWorkloadName and generatePodGroupName in builder library
2026-09-09 20:30:43 +00:00
Patrick Ohly 2579861734 kube-controller-manager: use context-aware client-go
Kubernetes 1.37 finished the introduction of context-aware client-go APIs.
Components like kube-controller-manager which are meant to support contextual
logging should use those new APIs.

This is not enforced yet because existing code must be updated first. Once
that is done, enforcement of everything touched here can be enabled tree-wide.
2026-09-07 16:49:09 +02:00
Kevin Hannon 8587d39819 implement generateWorkloadName and generatePodGroupName in builder library 2026-09-01 14:42:49 -04:00
kubernetes-prow[bot] 24c6954df0 Merge pull request #141329 from 249043822/br-job
fix job pod could not be removed while removing finalizer failed
2026-09-01 17:18:33 +00:00
Maciej Szulik c7ec7da06b Drop JobManagedBy after the feature GA-ed in 1.35
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-08-31 18:58:05 +02:00
张可10140699 9edf2d2d40 fix job pod could not be removed while removing finalizer failed 2026-08-31 21:00:47 +08:00
Heba Elayoty 45f110b546 add Path to WorkloadItem, remove rootPath from Validate
Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com>
2026-07-22 20:06:34 +00:00
Antoni Zawodny 108a61537a Update the code paths to use v1beta1 2026-07-21 12:56:46 +00:00
Heba Elayoty fa3181fbe8 Update Job scheduling manager to use workloadbuilder
Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com>
2026-07-20 18:09:59 +00:00
Maciej Szulik 1cc119f3dc Drop unsed patchJob method in job controller
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-07-17 15:51:05 +02:00
dom4ha 24ac5b2bd7 api: rename PodGroupTemplateRef to WorkloadRef 2026-07-01 12:18:43 +00:00
Joe Betz e89ecc6af0 generate 2026-06-30 18:02:28 -04:00
Akhil Singh 2fe49b0cd0 Fix job controller reporting active=0 during pod creation backoff
When manageJob() needs to create replacement pods but defers creation
because a pod-failure backoff is still active, it returned a hardcoded
active=0 to the caller. Because no pods were actually created or deleted,
this left Status.Active=0 while Status.Ready still reflected the running
pods. The apiserver correctly rejects such updates ("cannot set more
ready pods than active") with a 422, which blocks flushing uncounted
terminated pods, removing finalizers, and updating job status, leaving
pods stuck Terminating with stale status.

Return the real active count from both backoff early-returns instead,
since the deferral does not change the number of active pods.

Issue: https://github.com/kubernetes/kubernetes/issues/139428
2026-06-09 18:55:28 +05:30
Kubernetes Prow Robot 704d4840d0 Merge pull request #138887 from soltysh/replace_failed_pods
Simplify onlyReplaceFailedPods method
2026-05-26 01:15:14 +05:30
dom4ha 88948acc38 Remove v1alpha2 API definitions
Update client-go lister and informer imports to v1alpha3
2026-05-22 12:50:19 +00:00
dom4ha 8a52fb2ea9 Migrate references to v1alpha3 in tests, controllers, and remaining files 2026-05-22 12:50:19 +00:00
Joe Betz 119a1460c1 Generate deepcopy 2026-05-11 12:27:56 -04:00
Maciej Szulik 66c38f69b8 Simplify onlyReplaceFailedPods method
In our defaulting code we ensure that PodReplacementPolicy is set, its
value will depend on PodFailurePolicy being set or not, but we can
safely assume it's set. Thus the method onlyReplaceFailedPods is
sufficient to only verify PodReplacementPolicy and its value.

Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-05-08 11:13:23 +02:00
Maciej Szulik c35fd21a6b Drop JobPodReplacementPolicy after the feature GA-ed in 1.34
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-05-07 12:05:44 +02:00
Maciej Szulik 57a80ebae8 Drop JobSuccessPolicy after the feature GA-ed in 1.33
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-05-05 11:09:40 +02:00
Maciej Szulik 432a3477cc Drop JobBackoffLimitPerIndex after the feature GA-ed in 1.33
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2026-05-05 11:09:35 +02:00
zak905 04286814e7 clean up: remove loop variable capture 2026-04-28 23:53:27 +02:00
Kubernetes Prow Robot b36864202b Merge pull request #137755 from HirazawaUi/remove-SidecarContainers-feature-gate
Remove SidecarContainers feature gate
2026-04-23 08:16:45 +05:30
Mujib Ahasan b9b0ff440d remove accidently commited file
Signed-off-by: Mujib Ahasan <ahasanmujib8@gmail.com>
2026-04-04 12:53:30 +05:30
HirazawaUi 964d79dd6e Remove SidecarContainers feature gate 2026-03-19 15:56:47 +08:00
helayoty 68e30095de Implement Workload and PodGroup integration with Job controller
Signed-off-by: helayoty <heelayot@microsoft.com>
2026-03-18 20:32:37 +00:00
Prathamesh Bhope 408c17e102 job/metrics: promote metrics to beta and add test 2026-03-12 04:16:29 -07:00
Kubernetes Prow Robot 8275484dcf Merge pull request #137297 from atombrella/feature/pkg_forvar_modernize
Remove redundant variable re-assignment in for-loops under pkg
2026-03-05 00:28:20 +05:30
Mads Jensen f11bb48738 Remove redundant re-assignment in for-loops under pkg
This the forvar rule from modernize. The semantics of the for-loop
changed from Go 1.22 to make this pattern obsolete.
2026-03-02 08:47:43 +01:00
Mads Jensen d11d54dc50 Update pkg/controller to use slices.Contains 2026-02-26 10:17:13 +01:00
Michael Aspinwall 008b92e0f6 Fix clearing job consistency store for all deletes 2026-02-25 17:13:50 +00:00
Michael Aspinwall 61d0dd30fb Add the ability for the job controller to read its own writes 2026-02-25 01:19:48 +00:00
Kubernetes Prow Robot df9a0bda18 Merge pull request #133797 from tico88612/cleanup/new-fake-with-options
Replace apimachinery/pkg/watch.NewFake with NewFakeWithOptions in pkg/controller
2026-01-08 03:01:38 +05:30
Michał Woźniak 5a7c90fb76 Allow mutable scheduling directives for suspended Jobs 2025-11-05 19:37:33 +00:00
Dejan Zele Pejchev 3dabd4417d KEP-4368: Job Managed By; Promote to GA
Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com>
2025-11-04 10:59:45 +01:00
Kubernetes Prow Robot 41673c7198 Merge pull request #134910 from tchap/kcm-controllers-thread-mgmt
pkg/controller: Improve goroutine management
2025-11-03 17:58:03 -08:00
Ondra Kupka 575e9eb64c controller/job: Improve goroutine mgmt
Make sure all threads are terminated when Run returns.
2025-10-29 19:00:30 +01:00
Aditi Gupta fa59ed7f82 pkg/controller: Use informer.RunWithContext in tests 2025-10-22 14:13:30 -07:00
Jordan Liggitt 91d135f344 Include relevant dimensions in pod controller indexing 2025-10-16 13:27:50 -04:00