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
Tim Allclair
4986abe0b8
Automated refactoring to use SetFeatureGatesDuringTest
2025-10-01 21:10:53 -07:00
Maciej Szulik
46cc610e6f
Drop PodIndexLabel after the feature GA-ed in 1.32
...
Signed-off-by: Maciej Szulik <soltysh@gmail.com >
2025-09-11 19:32:48 +02:00
Dejan Zele Pejchev
bccc9fe470
KEP-3939: Job Pod Replacement Policy; promote to GA
...
Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com >
2025-06-16 16:26:03 +02:00
Kubernetes Prow Robot
fe5afa919b
Merge pull request #130333 from kmala/job
...
handle job complete update delayed event
2025-04-25 17:55:22 -07:00
Keerthan Reddy Mala
c7d0ed5c48
add integration test for job failure event delay and remove the unit test
2025-04-01 12:38:15 -07:00
Keerthan Reddy Mala
1b8bbcac44
Add integration test
2025-03-20 15:04:44 -07:00
Keerthan Reddy Mala
73afab1856
handle review comments
2025-03-10 14:01:29 -07:00
Yuki Iwai
749f03a49f
Gradeate Job SuccessPolicy to Stable
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com >
2025-03-07 07:21:12 +09:00
Keerthan Reddy Mala
547c005cb7
handle job complete update delayed event
2025-03-04 14:42:13 -08:00
Michal Wozniak
a91ed902fe
Graduate Backoff Limit Per Index as stable
...
Reenable the JobBackoffLimitPerIndex_Reenabling integration test
2025-02-26 17:06:37 +01:00
Alay Patel
3e3276e9fe
Promote PodIndexLabel for Statefulset and IndexedJob stable ( #128387 )
...
* lock feature gate for PodIndexLabel and mark it GA
Signed-off-by: Alay Patel <alayp@nvidia.com >
* add emulated version if testing disabling of PodIndexLabel FG
Signed-off-by: Alay Patel <alayp@nvidia.com >
---------
Signed-off-by: Alay Patel <alayp@nvidia.com >
2024-11-04 19:11:28 +00:00
Yuki Iwai
a23e7a42d3
Job: Refactor uncountedTerminatedPods to avoid casting everywhere
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com >
2024-10-29 13:12:35 +09:00
Michal Wozniak
70a8ceb6f0
Graduate JobManagedBy to Beta in 1.32
...
# Conflicts:
# pkg/features/kube_features.go
2024-10-17 09:01:54 +02:00
Harish Kuna
77a3de3cfb
Improve performance of Job controller delete event handler
2024-09-18 15:59:53 +00:00
Kubernetes Prow Robot
7bd36b50b4
Merge pull request #127258 from KPostOffice/testing-logger4job
...
Use logger context in job controller tests
2024-09-11 23:21:31 +01:00
Kevin
234c055205
Use logger context in job controller tests
...
Signed-off-by: Kevin <kpostlet@redhat.com >
2024-09-11 15:47:12 -04:00
Harish Kuna
e45eef1d51
Increase Job Controller Performance
2024-09-09 21:12:31 +00:00
古九
a1f0fc8f72
support the job controller handles the orphan pod using multi workers
2024-08-19 14:03:27 +08:00
Yuki Iwai
551931c6a8
Graduate the JobSuccessPolicy to beta
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com >
2024-07-23 09:29:06 +09:00
Yuki Iwai
594490fd77
Job: Add the CompletionsReached reason to the SuccessCriteriaMet condition
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com >
2024-07-22 21:24:52 +09:00
googs1025
6626b9ce28
chore(Job): remove deprecated fake.NewSimpleClientset method
2024-07-19 23:46:29 +08:00
googs1025
75a4cfbd58
chore(Job): use ctx.Done() instead of stopCh
2024-07-19 23:43:36 +08:00
googs1025
af5b8bed70
chore(Job): use WaitForCacheSync method after sharedInformerFactory Start
2024-07-19 23:41:20 +08:00
Michal Wozniak
f1233ac5e0
JobPodFailurePolicy to GA
...
# Conflicts:
# pkg/controller/job/job_controller_test.go
2024-07-12 17:21:32 +02:00
Michal Wozniak
fb7704ba03
Delay setting terminal Job conditions until all pods are terminal
...
Fix the integration test typecheck
Fix after rebase
# Conflicts:
# pkg/controller/job/job_controller_test.go
2024-07-11 20:54:09 +02:00
Tomas Tormo
5a046a4fd9
job_controller: Add test for SuccessCriteriaMet=False
2024-07-11 12:08:43 +00:00
Tomas Tormo
2aed11ec78
job_controller: Ignore FailureTarget!=True
2024-07-10 08:02:14 +00:00
Kubernetes Prow Robot
4a214f6ad9
Merge pull request #125461 from mimowo/pod-disruption-conditions-ga
...
Graduate PodDisruptionConditions to stable
2024-07-09 11:08:13 -07:00
Michal Wozniak
4250d444f8
Cleanup Job controller tests
2024-07-05 14:59:03 +02:00
Stephen Kitt
f55b59fc02
pkg/controller: drop pointer wrapper functions
...
The new k8s.io/utils/ptr package provides generic wrapper functions,
which can be used instead of type-specific pointer wrapper functions.
This replaces the latter with the former, and migrates other uses of
the deprecated pointer package to ptr in affected files.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
2024-07-02 16:19:12 +02:00
Michal Wozniak
780191bea6
review remarks for graduating PodDisruptionConditions
2024-06-28 17:32:27 +02:00
Michal Wozniak
bf0c9885a4
Graduate PodDisruptionConditions to stable
2024-06-28 16:36:51 +02:00
Michal Wozniak
7b5d3f5bc1
Assert on all conditions in the Pod Failure policy tests
2024-06-21 15:42:14 +02:00
Dejan Zele Pejchev
11b6e4c404
count ready pods when deleting active pods for failed jobs
2024-06-21 01:07:40 +02:00
Yuki Iwai
be3316e2e1
Job: Fix a bug that the SuccessCriteriaMet condition is added to the Job with successPolicy even if the JobSuccessPolicy featureGate is disabled
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com >
2024-06-12 00:36:36 +09:00
Dejan Pejchev
01536f5a84
add additional tests to make sure job controller logic is correct when counting terminating pods with enabled and disabled PodReplacementPolicy feature
2024-06-06 11:40:54 +02:00
Dejan Pejchev
7dd2948620
count terminating pods when deleting active pods for failed jobs
2024-06-04 11:31:00 +02:00
Michal Wozniak
a6c9d5ba00
Do not remove Job's finalizer from Pod owned by a non-batch/v1 Job
2024-05-14 17:29:23 +02:00
Alvaro Aleman
6d0ac8c561
Use the generic/typed workqueue throughout
...
This change makes us use the generic workqueue throughout the project in
order to improve type safety and readability of the code.
2024-05-04 14:33:12 -04:00
Marek Siarkowicz
3ee8178768
Cleanup defer from SetFeatureGateDuringTest function call
2024-04-24 20:25:29 +02:00
Yuki Iwai
f2508df279
Job: Use the fake clock in TestTrackJobStatusAndRemoveFinalizers
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com >
2024-03-09 06:09:05 +09:00
Yuki Iwai
e216742672
Job: Support for the JobSuccessPolicy (alpha)
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com >
2024-03-08 05:49:09 +09:00
Michał Woźniak
e568a77a93
Support for the Job managedBy field (alpha) ( #123273 )
...
* support for the managed-by label in Job
* Use managedBy field instead of managed-by label
* Additional review remarks
* Review remarks 2
* review remarks 3
* Skip cleanup of finalizers for job with custom managedBy
* Drop the performance optimization
* imrpove logs
2024-03-05 09:25:15 -08:00
Kubernetes Prow Robot
d687dc4772
Merge pull request #122261 from mimowo/unit-tests-for-job-controller-fix
...
Add unit test for Job Controller for panic when PodFailurePolicy is used on 1.28
2023-12-14 07:27:48 +01:00
Dejan Zele Pejchev
31710a799d
fix: Refactor TestFinalizerCleanup unit test by asserting job and pod informer state ( #121856 )
...
* fix: change informer resync period in TestFinalizerCleanup unit test
* refactor TestFinalizerCleanup to avoid flakiness by asserting job and pod informer state
* minor cleanups in TestFinalizerCleanup test in job_controller_test.go
another minor cleanup in TestFinalizerCleanup test in job_controller_test.go
* reduce poll time to 10ms in TestFinalizerCleanup in job_controller_test.go when waiting for podStore cache to get updated
* remove a whitespace from TestFinalizerCleanup to keep diff smaller
2023-12-13 23:55:28 +01:00
Michal Wozniak
34bc590418
Add unit test for Job Controller for panic when PodFailurePolicy is used on 1.28
2023-12-11 11:08:46 +01:00
Dejan Pejchev
e98c33bfaf
switch feature flag to beta for pod replacement policy and add e2e test
...
update pod replacement policy feature flag comment and refactor the e2e test for pod replacement policy
minor fixes for pod replacement policy and e2e test
fix wrong assertions for pod replacement policy e2e test
more fixes to pod replacement policy e2e test
refactor PodReplacementPolicy e2e test to use finalizers
fix unit tests when pod replacement policy feature flag is promoted to beta
fix podgc controller unit tests when pod replacement feature is enabled
fix lint issue in pod replacement policy e2e test
assert no error in defer function for removing finalizer in pod replacement policy e2e test
implement test using a sh trap for pod replacement policy
reduce sleep after SIGTERM in pod replacement policy e2e test to 5s
2023-10-26 21:50:37 +02:00
Kubernetes Prow Robot
8149ab3f3f
Merge pull request #121356 from mimowo/backoff-limit-per-index-beta
...
Graduate BackoffLimitPerIndex to Beta
2023-10-23 18:39:58 +02:00