Kubernetes Prow Robot
9fa043e769
Merge pull request #123181 from tenzen-y/job-avoid-casts-due-to-old-sets
...
Job: Use generic sets to avoid unnecessary string casts in valiations
2024-02-22 13:03:10 -08:00
Kubernetes Prow Robot
88c581833b
Merge pull request #123081 from tenzen-y/job-stop-no-need-type-casting
...
Job: Stop unnecessary string casts in validations
2024-02-22 13:03:01 -08:00
Michal Wozniak
fe8e896df8
Improve the doc comment for the Job status.active field
2024-02-19 14:27:30 +01:00
Yuki Iwai
1ef469343f
Job: Use generic sets to avoid unnecessary string casts in valiations
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2024-02-08 08:02:00 +09:00
Yuki Iwai
71bf563034
Job: Stop unnecessary sting casts in validations
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2024-02-02 06:46:30 +09:00
Kevin Hannon
4e5321c92e
add beta comment for pod replacement policy
2023-12-05 13:17:24 -05:00
Kubernetes Prow Robot
e4b74dd12f
Merge pull request #121765 from mimowo/ready-pods-stable-api
...
Fix API comment for the Job ready field
2023-11-07 23:52:12 +01:00
Michal Wozniak
9d5b2a4476
Fix API comment for the Job ready field
2023-11-07 07:38:51 +01:00
Michal Wozniak
1395e2e02c
Fix API comment for the FailIndex Job pod failure policy action
2023-11-06 17:47:13 +01: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
Maciej Szulik
9a58f6c4fb
Forbid creating CronJob with TZ or CRON_TZ, but allow updates
2023-10-20 17:14:03 +02:00
Michal Wozniak
6dd0ad5c0f
Graduate BackoffLimitPerIndex to Beta
2023-10-19 12:18:36 +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
Michal Wozniak
cc784cfe85
Mark Job onPodConditions as optional in pod failure policy
2023-08-28 11:42:56 +02:00
kannon92
f73c253acc
fix typos for pod replacement policy
2023-08-09 20:34:48 +00:00
kannon92
ce92952037
add podReplacementPolicy and terminating field to job api
2023-07-19 16:34:38 +00:00
Michal Wozniak
cf0b74774f
Extend the API for the Job job-index-failure-count annotation
2023-07-18 16:41:11 +02:00
Michal Wozniak
fcbfdc1710
Extend the Job API for BackoffLimitPerIndex
2023-07-18 11:28:15 +02:00
Michal Wozniak
926bc9bf8e
Update podFailurePolicy comment from alpha-level to beta
2023-05-26 10:24:36 +02:00
Kubernetes Prow Robot
bc6cbdabbe
Merge pull request #117852 from tenzen-y/replace-deprecated-sets
...
Job: Use generic Set in validation
2023-05-24 14:47:00 -07:00
Yuki Iwai
2e2afc7fd2
Job: Use generic Set in validation
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-05-12 03:26:25 +09:00
Kubernetes Prow Robot
367180d781
Merge pull request #117933 from tenzen-y/replace-deprecated-Prt-utils
...
Job: Replace deprecated pointer utils with supported ones
2023-05-11 09:59:14 -07:00
Yuki Iwai
de882f5193
Job: Replace deprecated pointer utils with supported ones
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-05-11 19:29:14 +09:00
Tim Hockin
ec3379a717
Do hostNet Pod-ports -> hostPorts in Pod defaults
...
Rather than doing it in PodSpec defaulting, which triggers in
Deployments and DaemonSets, do it only when a Pod is actually in play.
2023-05-09 18:10:20 -07:00
Yuki Iwai
235c261196
Job: Fix a misspelling
...
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-05-09 00:25:45 +09: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
Tim Hockin
d55b67b349
Clean up brace whitespace in **/validation_test.go
...
This was making my eyes bleed as I read over code.
I used the following in vim. I made them up on the fly, but they seemed
to pass manual inspection.
:g/},\n\s*{$/s//}, {/
:w
:g/{$\n\s*{$/s//{{/
:w
:g/^\(\s*\)},\n\1},$/s//}},/
:w
:g/^\(\s*\)},$\n\1}$/s//}}/
:w
2023-05-02 00:48:42 -07: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
48e4052fc0
Merge pull request #114902 from TommyStarK/pkg-apis/replace-deprecated-pointer-function
...
pkg/apis: Replace deprecated pointer function
2023-03-09 21:34:15 -08:00
Maciej Szulik
1b825c179b
Promote CronJob TZ to GA
2023-03-07 12:58:57 +01:00
kannon92
3489ace708
generated code
2023-03-01 21:43:25 +00:00
kannon92
cb9334ebb2
update batch apis
2023-03-01 20:39:47 +00:00
kannon92
2da3e839b0
remove ValidateJobSpec and add more test cases to batch validation
2023-03-01 20:39:47 +00:00
Kubernetes Prow Robot
e519921666
Merge pull request #115940 from ahg-g/ahg-mutable-ga
...
Allow mutating schedulingGates in the Pod template for suspended Jobs
2023-02-28 08:51:17 -08:00
Kubernetes Prow Robot
35f0507dca
Merge pull request #111856 from mengjiao-liu/improve-podSpec.restartPpolicy-description
...
Improve spec.template.spec.restartPolicy description
2023-02-27 22:53:27 -08:00
Mengjiao Liu
81aefe5fee
Improve spec.template.spec.restartPolicy description
2023-02-27 14:25:48 +08:00
ahg-g
5bca182544
Allow mutating schedulingGates in the Pod template for suspended Jobs
2023-02-24 18:10:26 +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
Daniel Vega-Myhre
c63f448451
change test names and address other comments
2023-02-23 03:25:17 +00:00
Daniel Vega-Myhre
d41302312e
update validation logic so completions is mutable iff completions is modified in tandem with parallelsim so completions == parallelism
2023-02-23 03:25:16 +00:00
Claudiu Belu
ec753fcb55
unittests: Fixes unit tests for Windows (part 6)
...
Currently, there are some unit tests that are failing on Windows due to
various reasons:
- On Windows, consecutive time.Now() calls may return the same timestamp, which would cause
the TestFreeSpaceRemoveByLeastRecentlyUsed test to flake.
- tests in kuberuntime_container_windows_test.go fail on Nodes that have fewer than 3 CPUs,
expecting the CPU max set to be more than 100% of available CPUs, which is not possible.
- calls in summary_windows_test.go are missing context.
- filterTerminatedContainerInfoAndAssembleByPodCgroupKey will filter and group container
information by the Pod cgroup key, if it exists. However, we don't have cgroups on Windows,
thus we can't make the same assertions.
2023-01-31 11:49:26 +00:00
Jordan Liggitt
7e19850f31
Validate format of timeZone
2023-01-30 17:01:45 -05:00
Jurj Andrei George
4df989d719
Skip failing Windows unit tests
...
As discussed during the SIG Testing meeting on January 10, 2023, failing
Windows unit tests are now skipped.
These changes should be reverted when the unit tests wil get fixed.
Mentioned SIG Testing meeting:
https://docs.google.com/document/d/1z8MQpr_jTwhmjLMUaqQyBk1EYG_Y_3D4y4YdMJ7V1Kk/edit#heading=h.qwblxf2uhgoo
2023-01-18 14:18:41 +02:00
TommyStarK
c242e647ae
pkg/apis: Replace deprecated pointer function
...
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-01-08 13:14:37 +01:00
ztzxt
70415b9562
Fix API refs for batch v1 and v1beta1
...
Add generatod docs for batch v1
Start types with uppercase letters
Fix batch API docs under pgs/apis
Create generated files for batch v1
Fix batch v1beta1 docs
Generate new files after merge conflict
2022-11-19 12:42:25 +03:00
Michal Wozniak
c803892bd8
Enable the feature into beta
2022-11-09 09:02:40 +01:00
Jordan Liggitt
fc69084bf1
Update workload selector validation
2022-11-07 20:52:02 -05:00
Manjusaka
0843c4dfca
Add extra value validation for matchExpression field in LabelSelector
2022-11-07 20:48:21 -05:00