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
Michal Wozniak
c803892bd8
Enable the feature into beta
2022-11-09 09:02:40 +01:00
Michal Wozniak
bf9ce70de3
Support handling of pod failures with respect to the specified rules
2022-08-04 18:39:08 +02:00
Maciej Szulik
130845c937
Change validation tests such that they accept valid values from a
...
provided TZ database and fail on any other values
2022-08-02 16:53:10 +02:00
Abirdcfly
ceceb96f3d
cleanup: skip a test validate time_zone letter case in darwin
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-04-04 16:50:45 +08:00
Ross Peoples
dbb3906a09
Fix for timeZone validation and strategy
2022-03-29 11:40:34 -05:00
Ross Peoples
98837de446
TimeZone support for CronJobs
2022-03-28 16:33:00 -05:00
Kubernetes Prow Robot
36e69a3303
Merge pull request #105980 from ahg-g/ahg-mutable
...
Make job pod template annotations and labels mutable for suspended jobs that never started
2021-10-29 13:15:23 -07:00
Abdullah Gharaibeh
f466ab0989
Make job pod template annotations and labels mutable for suspended jobs that never started
2021-10-28 14:53:15 -04:00
Aldo Culquicondor
1bff5eb44d
Add ready field to Job status
...
to keep a count of the pods that have the ready condition.
Also:
- Add feature gate JobReadyPods.
- Add Ready to describe.
Change-Id: Ib934730a430a8e2a2f485671e345fe2330006939
2021-10-19 15:18:34 -04:00
Abdullah Gharaibeh
335817cbce
Allow updating node affinity, selector and tolerations for suspended jobs that never started
2021-10-14 10:04:47 -04:00
Sahil Vazirani
3988405c8d
GA TTLAfterFinish
2021-10-07 16:58:50 -07:00
Aldo Culquicondor
bb56a0bd04
Add Job.status.uncountedPodUIDs
...
For tracking Job Pods that have finished but are not yet counted as failed or succeeded
And feature gate JobTrackingWithFinalizers
Change-Id: I3e080f3ec090922640384b692e88eaf9a544d3b5
2021-07-08 15:31:59 +00:00
Aldo Culquicondor
e6c3d7b34d
Only default Job fields when feature gates are enabled
...
Also use pointer for completionMode enum
2021-03-12 20:46:52 +00:00
Aldo Culquicondor
a1a5868a5a
Add Job.spec.completionMode and Job.status.completedIndexes
...
And IndexedJob feature gate, disabled by default.
Update JobDescriber
2021-03-03 15:10:18 +00:00
Aldo Culquicondor
14a5b5c859
Add test for ValidateJobUpdate
...
Change-Id: If194f941919e2f4256001030a96101b6c91c4d08
2021-01-08 15:20:08 -05:00
Aldo Culquicondor
0309b8ac9b
Use t.Run in Job validation tests
...
Change-Id: I0bc69c59b5ccfc9bb323295fed3478341f7a7b21
2021-01-08 14:29:27 -05:00
SataQiu
961d062e9a
fix the validation logic for Job/CronJob RestartPolicy field
2020-11-11 14:16:36 +08:00
Derek Carr
45bd6cb186
Downward API hugepages
2020-11-10 16:09:13 -05:00
Andrew Kim
c919139245
update import of generic featuregate code from k8s.io/apiserver/pkg/util/feature -> k8s.io/component-base/featuregate
2019-05-08 10:01:50 -04:00
Davanum Srinivas
7b8c9acc09
remove unused code
...
Change-Id: If821920ec8872e326b7d85437ad8d2620807799d
2019-04-19 08:36:31 -04:00
Jordan Liggitt
4dca07ef7e
Fixup incorrect use of DefaultFeatureGate.Set in tests
2018-11-21 11:51:33 -05:00
Janet Kuo
47d06c446d
Validate Job .spec.ttlSecondsAfterFinished; clear it when feature disabled
...
1. If TTLAfterFinished feature is enabled, the value should be non-negative.
2. If TTLAfterFinished feature is disabled, the field value should not
be kept.
2018-09-04 14:21:14 -07:00
Dr. Stefan Schimanski
012b085ac8
pkg/apis/core: mechanical import fixes in dependencies
2017-11-09 12:14:08 +01:00
Jordan Liggitt
b8155e107c
Limit 52-character cronjob name validation to create
2017-09-24 23:56:27 -04:00
Julia Evans
e30237b869
Validate that cronjob names are less than 52 characters
2017-09-19 13:39:33 -07:00
peay
2b33de0684
Modify CronJob API to add job history limits, cleanup jobs in controller
2017-02-25 06:51:54 -05:00
Clayton Coleman
469df12038
refactor: move ListOptions references to metav1
2017-01-23 17:52:46 -05:00
Clayton Coleman
6ea557d4b2
Fix tests after new defaulted value added
2017-01-23 12:37:21 -05:00
Clayton Coleman
9a2a50cda7
refactor: use metav1.ObjectMeta in other types
2017-01-17 16:17:19 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Clayton Coleman
3454a8d52c
refactor: update bazel, codec, and gofmt
2016-12-03 19:10:53 -05:00
Clayton Coleman
5df8cc39c9
refactor: generated
2016-12-03 19:10:46 -05:00
Maciej Szulik
41d88d30dd
Rename ScheduledJob to CronJob
2016-11-07 10:14:12 +01:00
Maciej Szulik
902ecd85fc
Remove seconds from scheduled jobs cron format
2016-08-10 11:15:33 +02:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Maciej Szulik
d8b9495ea0
Change suspend to be pointer for ScheduledJob and modify validation to forbid setting job selectors
2016-05-30 15:43:23 +02:00
Maciej Szulik
adc890a57e
ScheduledJob validation & defaults
2016-05-21 15:48:40 +02:00
Clayton Coleman
fdb110c859
Fix the rest of the code
2016-04-29 17:12:10 -04:00
Maciej Szulik
a3b4447305
Move internal types of job from pkg/apis/extensions to pkg/apis/batch
2016-04-25 11:03:54 +02:00