Stephen Kitt
ff3e9ea79f
pkg/api(s): 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.
Signed-off-by: Stephen Kitt <skitt@redhat.com >
2024-09-23 23:00:34 +02:00
Joe Betz
2595aa1309
generate
2024-09-03 14:26:26 -04:00
Tim Hockin
a074dd6f2e
Use +default for now deprecated ScaleIO volume
2024-06-19 12:18:33 -07:00
Tim Hockin
0f5ab4beec
Use +default for now deprecated AzureDisk volume
2024-06-19 11:59:52 -07:00
Tim Hockin
333c02cf28
Use +default for now deprecated ISCSI volume
2024-06-19 11:59:20 -07:00
Tim Hockin
03f0110b95
Use +default for now deprecated RBD volume
...
THis leaves us less hand-written code and a better schema.
2024-06-19 11:58:26 -07:00
Marek Siarkowicz
3ee8178768
Cleanup defer from SetFeatureGateDuringTest function call
2024-04-24 20:25:29 +02: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
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
TommyStarK
c242e647ae
pkg/apis: Replace deprecated pointer function
...
Signed-off-by: TommyStarK <thomasmilox@gmail.com >
2023-01-08 13:14:37 +01: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
Ross Peoples
d26e6cca72
make update after timeZone support for CronJob
2022-03-29 11:40:46 -05:00
Aldo Culquicondor
2c5d0a273c
Graduate IndexedJob to stable
...
- Lock feature gate to true and schedule for deletion in 1.26
- Remove checks on feature gate
- Graduate E2E test to Conformance
Change-Id: I6814819d318edaed5c86dae4055f4b050a4d39fd
2022-03-15 13:41:06 -04:00
Abdullah Gharaibeh
b2d2ec9e76
Graduate SuspendJob to GA
2022-02-15 10:46:13 -05:00
Sergey Kanzhelev
b7affcced1
implement :grpc probe action
2021-11-17 17:31:23 +00:00
Tim Hockin
11a25bfeb6
De-share the Handler struct in core API ( #105979 )
...
* De-share the Handler struct in core API
An upcoming PR adds a handler that only applies on one of these paths.
Having fields that don't work seems bad.
This never should have been shared. Lifecycle hooks are like a "write"
while probes are more like a "read". HTTPGet and TCPSocket don't really
make sense as lifecycle hooks (but I can't take that back). When we add
gRPC, it is EXPLICITLY a health check (defined by gRPC) not an arbitrary
RPC - so a probe makes sense but a hook does not.
In the future I can also see adding lifecycle hooks that don't make
sense as probes. E.g. 'sleep' is a common lifecycle request. The only
option is `exec`, which requires having a sleep binary in your image.
* Run update scripts
2021-10-29 13:15:11 -07: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
Stephen Augustus
481cf6fbe7
generated: Run hack/update-gofmt.sh
...
Signed-off-by: Stephen Augustus <foo@auggie.dev >
2021-08-24 15:47:49 -04:00
Jordan Liggitt
87a4e082ac
Change defaulter-gen input to package path
2021-08-14 11:00:18 -04: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
Adhityaa Chandrasekar
a0844da8f7
batch: add suspended job
...
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com >
2021-03-08 20:08:21 +00:00
Maciej Szulik
1fc8fe0f7d
Generated changes
2021-03-05 14:03:05 +01:00
Maciej Szulik
9364d0fc81
Promote CronJobs to batch/v1
2021-03-05 12:44:23 +01: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
Benjamin Elder
56e092e382
hack/update-bazel.sh
2021-02-28 15:17:29 -08:00
Kubernetes Prow Robot
5e9b43eab6
Merge pull request #96960 from Jefftree/defaulter-diff
...
Update defaulter gen to not use reflect
2021-01-15 17:07:44 -08:00
Aldo Culquicondor
4c85317d8d
Use autogenerated Job conversion functions
...
Change-Id: I46691310faa1973b153e344c95989bbea0ac8d6c
2020-12-30 13:19:32 -05:00
Jefftree
6addd69529
Update generator to not use reflect
2020-12-14 16:38:23 -08:00
Jefftree
50e7aa49aa
Integrate defaults marker and remove ContainerPort defaulter
2020-11-13 17:27:40 -08:00
wawa0210
6709d4f938
Keep the imagePullPolicy of kubectl alpha debug consistent with the default
2020-09-24 00:22:53 +08:00
Patrick Ohly
32fdf688b3
GenericEphemeralVolume: 'make update' for API
2020-07-09 11:03:03 +02:00
wojtekt
7b6bcdf780
Autogenerated code
2019-10-24 20:21:00 +02:00
wojtekt
d7011f1bdb
Cleanup explicitly registered functions
2019-10-24 20:21:00 +02:00
Matthias Bertschy
a042a4b0ee
startupProbe: make update
2019-08-30 00:42:43 +02:00
Lee Verberne
4a753c7a44
Generated code for ephemeral containers API
2019-07-22 11:19:22 +00:00
Eric Ernst
5e09568c8e
pod-overhead: autogenerated code updates
...
Signed-off-by: Eric Ernst <eric.ernst@intel.com >
2019-06-18 08:05:35 -07:00
Jordan Liggitt
899d00a529
Fix incorrect procMount defaulting
2019-06-10 22:01:54 -04:00
Serguei Bezverkhi
0050a649f0
Generated files
...
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com >
2018-12-20 14:43:52 -05:00
Janet Kuo
1d6dd86407
Autogen API docs
2018-09-04 11:35:30 -07:00
Janet Kuo
209b32684e
Add TTLAfterFinished alpha feature
2018-09-04 11:35:30 -07:00
stewart-yu
f1343af5d7
auto-generated file
2018-07-28 07:54:17 +08:00
stewart-yu
55251c716a
update the import file for move util/pointer to k8s.io/utils
2018-07-27 19:47:02 +08:00
Clayton Coleman
ef561ba8b5
generated: Avoid use of reflect.Call in conversion code paths
2018-07-17 23:02:16 -04:00
Jordan Liggitt
f51ba20cdd
change field selector conversion registration to be strongly typed
2018-07-03 15:47:20 -04:00
Dr. Stefan Schimanski
f8de7cea40
Update generated files
2018-06-29 20:36:17 +02:00