Davanum Srinivas
ebc1ccc491
Bump k8s.io/kube-openapi to latest SHA (f3f2b991d03b)
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2025-07-14 07:24:48 -04:00
Michal Wozniak
6e5c99dd05
Review remarks
2025-06-30 13:18:53 +02:00
Michal Wozniak
ca314b9f56
Fix validation for Job with suspend=true,completions=0 to set Complete condition
2025-06-30 07:58:04 +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
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
Michal Wozniak
a91ed902fe
Graduate Backoff Limit Per Index as stable
...
Reenable the JobBackoffLimitPerIndex_Reenabling integration test
2025-02-26 17:06:37 +01:00
Kubernetes Prow Robot
38fab70477
Merge pull request #128398 from tenzen-y/remaining-job-tracking-annotation-testing
...
Job: Remove JobTrackingFinalizer annotation specific testings
2025-01-07 06:26:28 +01:00
Patrick Ohly
8a908e0c0b
remove import doc comments
...
The "// import <path>" comment has been superseded by Go modules.
We don't have to remove them, but doing so has some advantages:
- They are used inconsistently, which is confusing.
- We can then also remove the (currently broken) hack/update-vanity-imports.sh.
- Last but not least, it would be a first step towards avoiding the k8s.io domain.
This commit was generated with
sed -i -e 's;^package \(.*\) // import.*;package \1;' $(git grep -l '^package.*// import' | grep -v 'vendor/')
Everything was included, except for
package labels // import k8s.io/kubernetes/pkg/util/labels
because that package is marked as "read-only".
2024-12-02 16:59:34 +01:00
Yuki Iwai
e5fd9cfb18
Job: Remove JobTrackingFinalizer annotation specific testings
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com >
2024-10-29 12:32:06 +09:00
carlory
dae05f3b88
cleanup after JobPodFailurePolicy is promoted to GA
2024-07-18 10:00:56 +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
70c4965270
Add more test cases for SuccessCriteriaMet
...
Cleanup error messages in the new code
Add validation for the Job controller fields
2024-07-12 11:22:26 +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
Kubernetes Prow Robot
cdcaea687c
Merge pull request #125751 from ahg-g/elastic-job
...
Graduate ElasticIndexedJob to GA
2024-07-11 11:08:24 -07:00
Michael Fraenkel
cd949bafa4
use MakePodSpec consistently ( #125805 )
...
cleaning up some tests after MakePod/MakePodSpec were introduced
2024-06-30 10:28:36 -07:00
Michael Fraenkel
a7264f95ff
pod terminationGracePeriodSeconds is always valid ( #124461 )
...
* Pod terminationGracePeriodSeconds is always valid
Validation of a pod spec will always use the pod's
TerminationGracePeriodSeconds value.
A set of pod test-helpers have been created to help construct Pods.
* remove unused func
* reduction
* reduce 2
* simplify test
* report invalid grace period
* update SupplementalGroupPolicy tests
2024-06-29 18:09:29 -07:00
ahg-g
be410c0dae
Graduate ElasticIndexedJob to GA
2024-06-28 17:00:29 +00:00
Marek Siarkowicz
3ee8178768
Cleanup defer from SetFeatureGateDuringTest function call
2024-04-24 20:25:29 +02:00
Lan Liang
9236425df6
pkg/registry: 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 affacted files.
See kubernetes/utils#283 for details.
Signed-off-by: Lan Liang <gcslyp@gmail.com >
2024-04-15 14:34:53 +00:00
Michal Wozniak
79fe37537c
Adjust the validation to the current state
2024-03-08 17:43:24 +01: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
Maciej Szulik
9a58f6c4fb
Forbid creating CronJob with TZ or CRON_TZ, but allow updates
2023-10-20 17:14:03 +02:00
Dejan Pejchev
de5dcdc79b
cleanup: fix missing manual selectors in strategy test
2023-10-12 17:35:11 +02:00
Dejan Pejchev
761cb18a68
cleanup: refactor job strategy tests; add test for generating selectors in PrepareForCreate test
2023-10-12 17:32:35 +02:00
Dejan Pejchev
b9b436a018
cleanup: extract generateSelector from Validate method in job strategy
2023-10-12 17:32:32 +02:00
Dejan Zele Pejchev
921c0d0180
cleanup: add defaulting for job manual selector ( #120206 )
...
* cleanup: add defaulting for job manual selector
* cleanup: add assert in job defaults test for manual selector
* cleanup: fix failing job storage test
* cleanup: fix batch fuzzer to handle manual selector default
* cleanup: fix lint issue on checking bool condition in job strategy
* cleanup: remove TODO in generateSelectors in job strategy Validate; inline job manual selector assignment in fuzzer
2023-10-11 22:51:40 +02:00
kannon92
ce92952037
add podReplacementPolicy and terminating field to job api
2023-07-19 16:34:38 +00:00
Michal Wozniak
fcbfdc1710
Extend the Job API for BackoffLimitPerIndex
2023-07-18 11:28:15 +02:00
Aldo Culquicondor
c27f9fdeb7
Add warnings for big number of completions and parallelism
...
Change-Id: I63e192b1ce9da7d8bb04f8be1a6e19ec6fbbfa5a
2023-06-14 10:38:42 -04:00
Tim Hockin
151509fb74
Remove unreachable warning on volume name dup
...
Volume names are validated to be unique and always have been. The cited
issues are all about apply getting messed up, not the aspiserver
allowing dups.
```
$ k create -f /tmp/bad.yaml
The Deployment "bad-volumes-test" is invalid: spec.template.spec.volumes[1].name: Duplicate value: "config"
$ k apply --server-side -f /tmp/bad.yaml
Error from server: failed to create typed patch object (default/bad-volumes-test; apps/v1, Kind=Deployment): .spec.template.spec.volumes: duplicate entries for key [name="config"]
$ k apply -f /tmp/bad.yaml -o json | jq '.spec.template.spec.volumes'
The Deployment "bad-volumes-test" is invalid: spec.template.spec.volumes[1].name: Duplicate value: "config"
```
2023-06-07 17:14:49 -07:00
Kubernetes Prow Robot
7add692580
Merge pull request #117633 from kannon92/remove-job-tracking-finalizers
...
remove tracking annotation from validation and webhooks
2023-05-04 10:34:43 -07:00
carlory
48d01d6d9b
Remove ability to re-enable serving deprecated batchapiv1beta1 APIs
2023-04-28 14:08:31 +08:00
kannon92
6a4cf352b8
remove tracking annotation from validation and webhooks
2023-04-26 17:16:05 +00:00
kannon92
aef8cbab89
Add batch.kubernetes.io to labels created in the Job controller.
2023-03-11 12:27:38 +00:00
Kubernetes Prow Robot
2225ee5dd3
Merge pull request #115904 from soltysh/cronjob_tz_ga
...
Promote CronJob TZ to GA
2023-03-07 07:20:47 -08:00
Kubernetes Prow Robot
51ef4b10ba
Merge pull request #115504 from pacoxu/cronjob-timezone
...
add some ut for cronjob strategy and timezone in schedule
2023-03-07 07:20:34 -08:00
Maciej Szulik
1b825c179b
Promote CronJob TZ to GA
2023-03-07 12:58:57 +01:00
kannon92
cd71486cfb
update documentation on generateSelector for manual selector case
2023-03-02 19:47:58 +00:00
ahg-g
2ecd24011a
Graduate JobMutableNodeSchedulingDirectives feature to GA
2023-02-28 15:47:13 +00:00
Daniel Vega-Myhre
93a74afccb
move AllowElasticIndexedJobs into JobValidationOptions declaration
2023-02-27 18:45:58 +00:00
Daniel Vega-Myhre
8d31da4599
add validation test case for immutable completions on indexed jobs when AllowElasticIndexedJobs is false
2023-02-23 21:05:03 +00:00
Daniel Vega-Myhre
15077a0f28
plumb feature gate value through job validation opts and modify validateCompletions function to only check completions == parallelism after the update, not before
2023-02-23 18:09:47 +00:00
Paco Xu
dfea1ae53e
add some ut for cronjob strategy and timezone in schedule
...
Signed-off-by: Paco Xu <paco.xu@daocloud.io >
2023-02-22 16:29:26 +08:00
kannon92
96541d3e51
increasing coverage from 75% to 95% for strategy.go for batch/job
2023-01-23 18:53:46 +00:00
Kubernetes Prow Robot
12c71fdf1c
Merge pull request #113542 from ardaguclu/fix-shortname-disperancy
...
Set singular names for core types to pass to discovery
2023-01-03 09:29:43 -08:00
Tim Hockin
8f62b94991
cronjob: API warn when name is not DNS label
2022-12-16 13:08:08 -08:00
Tim Hockin
fec8e721b2
job: API warn when name is not DNS label
2022-12-16 13:07:42 -08:00
Arda Güçlü
1abf94bec3
Remove GetSingularName for subresources
2022-11-18 12:21:19 +03:00
Arda Güçlü
672e0b1e01
Use correct singular name format for subresources
2022-11-18 12:21:19 +03:00