Commit Graph

6525 Commits

Author SHA1 Message Date
Patrick Ohly
bde9b64cdf DRA: remove "source" indirection from v1 Pod API
This makes the API nicer:

    resourceClaims:
    - name: with-template
      resourceClaimTemplateName: test-inline-claim-template
    - name: with-claim
      resourceClaimName: test-shared-claim

Previously, this was:

    resourceClaims:
    - name: with-template
      source:
        resourceClaimTemplateName: test-inline-claim-template
    - name: with-claim
      source:
        resourceClaimName: test-shared-claim

A more long-term benefit is that other, future alternatives
might not make sense under the "source" umbrella.

This is a breaking change. It's justified because DRA is still
alpha and will have several other API breaks in 1.31.
2024-06-27 17:53:24 +02:00
Michal Wozniak
c12bcf4e94 Refactor enactJobFinished util function for Job controller 2024-06-20 13:02:54 +02:00
Kubernetes Prow Robot
aeed1d0e1a
Merge pull request #124842 from carlory/honor-pv-reclaim-policy-e2e
Promote HonorPVReclaimPolicy to beta and enable it by default
2024-06-19 13:26:41 -07:00
carlory
4058178b8c Promote HonorPVReclaimPolicy to beta and enable it by default 2024-06-19 13:51:37 +08:00
Kubernetes Prow Robot
bd88faee8b
Merge pull request #125520 from mimowo/cleanup-success-policy-check
Remove redundant check in Job success policy code
2024-06-18 12:40:09 -07:00
Michal Wozniak
7a3d73d234 Remove redundant check in Job success policy code 2024-06-14 19:59:40 +02:00
Michal Wozniak
18a14bcff9 Remove unused parameter in Job controller function 2024-06-14 19:43:19 +02:00
Kubernetes Prow Robot
eda1c78054
Merge pull request #125445 from mimowo/prepare-gc-controller-test
Cleanup gc_controller tests to do not use deprecated types
2024-06-12 10:04:37 -07:00
Michal Wozniak
150b255962 Cleanup gc_controller tests to do not use deprecated types 2024-06-12 10:16:48 +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
Kubernetes Prow Robot
c49b140c45
Merge pull request #125175 from dejanzele/feat/count-terminating-for-failed-jobs
Count terminating pods when deleting active pods for failed jobs
2024-06-10 16:56:37 -07:00
Kubernetes Prow Robot
c6b5191c37
Merge pull request #122499 from mattcary/oref
Respect controllers on PVCs for retention policy
2024-06-07 09:33:04 -07:00
Kubernetes Prow Robot
cfd949e321
Merge pull request #124942 from AxeZhan/getFinishTimeFromContainers
[Sidecar Containers] Sidecar containers finish time needs to be accounted for in job controller
2024-06-06 12:23:05 -07:00
Davanum Srinivas
60fe406f67
remove vestiges of providerless tag
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-06-06 12:18:38 -04: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
AxeZhan
d97282052e check sidecar featuregate in getFinishedTime 2024-06-06 15:46:41 +08:00
Matthew Cary
d386d6880e Respect controllers on PVCs for retention policy 2024-06-05 12:06:41 -07:00
Kubernetes Prow Robot
d8b33e32b1
Merge pull request #125168 from kaisoz/jobreadypods-fg-removal
Remove the `JobReadyPods` feature flag
2024-06-05 11:36:58 -07:00
Kubernetes Prow Robot
7e88a33c7b
Merge pull request #120396 from wangwei10061/master
Fix wrong annotations in defaults.go
2024-06-04 12:53:19 -07:00
Dejan Pejchev
7dd2948620
count terminating pods when deleting active pods for failed jobs 2024-06-04 11:31:00 +02:00
hbostan
db827e67fc Add a new workqueue to endpointslice controller for updating topology
cache and checking node topology distribution.
2024-06-04 08:33:32 +00:00
Kubernetes Prow Robot
1ebc3d2a64
Merge pull request #120699 from liyuerich/ptrderefcontroller
drop deprecated pointer package in controller
2024-05-29 10:12:36 -07:00
Kubernetes Prow Robot
da02fdb2ae
Merge pull request #123339 from skitt/canonical-json-patch
Update kustomize, use canonical json-patch v4 import
2024-05-29 08:02:24 -07:00
Stephen Kitt
5300466a5c
Use canonical json-patch v4 import
The canonical import for json-patch v4 is
gopkg.in/evanphx/json-patch.v4 (see
https://github.com/evanphx/json-patch/blob/master/README.md#get-it for
reference).

Using the v4-specific path should also reduce the risk of unwanted v5
upgrade attempts, because they won't be offered as automated upgrades
by dependency upgrade management tools, and they won't happen through
indirect dependencies (see
https://github.com/kubernetes/kubernetes/pull/120327 for context).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-05-28 10:48:22 +02:00
Tomas Tormo
ce56b2ca58 Remove JobReadyPods feature flag 2024-05-27 13:09:52 +00:00
carlory
214287b370 kube-controller-manager removed deprecated command flags: --volume-host-cidr-denylist and --volume-host-allow-local-loopback 2024-05-27 10:59:09 +08:00
AxeZhan
3a2a500182 check restartpolicy in getFinishTimeFromContainers 2024-05-21 11:58:06 +08:00
AxeZhan
e4348a1210 consider sidecar containers in getFinishTimeFromContainers 2024-05-20 18:31:23 +08:00
SataQiu
4bd3baece3 kube-controller-manager: remove the deprecated horizontal-pod-autoscaler-upscale-delay and horizontal-pod-autoscaler-downscale-delay flags 2024-05-19 17:49:23 +08:00
Kubernetes Prow Robot
60ca8489be
Merge pull request #124790 from carlory/cleanup-volume-cluster
Remove clusterName from VolumeOptions
2024-05-15 17:23:12 -07: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
Kubernetes Prow Robot
5cd78a1e9d
Merge pull request #123233 from marshallbrekka/bugfix/daemonset-update-old-ready
Fix daemonset to ensure old unhealthy pods are counted towards max unavailable budget.
2024-05-13 09:53:53 -07:00
Kubernetes Prow Robot
f75d8e97f1
Merge pull request #124624 from atiratree/fix-flake
[test] statefulset controller: fix requests tracker concurrency
2024-05-10 06:49:00 -07:00
carlory
9c92b37d4e remove clusterName from VolumeOptions 2024-05-10 16:42:31 +08:00
liyuerich
8e97c0ff7d drop deprecated pointer package in controller
Signed-off-by: liyuerich <yue.li@daocloud.io>

Update job_controller.go

Signed-off-by: liyuerich <yue.li@daocloud.io>
2024-05-09 11:34:25 +08:00
Kubernetes Prow Robot
de7d9a9897
Merge pull request #108349 from LastNight1997/optimize-dedup
optimize dedupCurHistories func in DaemonSetsController
2024-05-08 15:13:17 -07:00
Kubernetes Prow Robot
d2e6c51b05
Merge pull request #123537 from kaisoz/commonize-job-util-functions
Add the util pkg to commonize job util functions
2024-05-07 16:59:28 -07:00
Filip Křepinský
8ca077ab7a improve TestParallelScale test
we can test for larger number of parallel requests than 2 in
statefulsets with hundreds of replicas
2024-05-07 21:01:47 +02:00
Filip Křepinský
df276c5538 fix requests tracker concurrency 2024-05-07 20:45:18 +02:00
Tomas Tormo
c856c412b9 Add util pkg to commonize job util functions 2024-05-07 09:27:46 +00:00
Kubernetes Prow Robot
1dc30bf90f
Merge pull request #124600 from alvaroaleman/typed-wq
Use the generic/typed workqueue throughout
2024-05-06 16:18:31 -07:00
Kubernetes Prow Robot
4d17d30029
Merge pull request #124519 from dims/drop-all-the-providery-things-take-2
Remove gcp in-tree cloud provider and credential providers
2024-05-06 08:03:14 -07:00
Kubernetes Prow Robot
fdefcb43d1
Merge pull request #124589 from carlory/dra-resourceclaim-controller
the resourceclaim controller forgot to wait for podSchedulingSynced and templatesSynced
2024-05-06 06:58:26 -07:00
carlory
76aa289608 bugfix: resourceclaim forgot to wait for podSchedulingSynced and templatesSynced 2024-05-06 16:56:16 +08:00
Kubernetes Prow Robot
d83cd48e5e
Merge pull request #124131 from zyjhtangtang/master
Correct variable names in EndpointSliceMirroring controller
2024-05-05 14:40:13 -07: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
Kubernetes Prow Robot
29a4812f03
Merge pull request #124080 from claudiubelu/skip-windows-tests
Skip failing Windows tests
2024-05-01 07:48:12 -07:00
Davanum Srinivas
efdb2961b6
drop unused code pointed out by linter
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-05-01 09:03:57 -04:00
Davanum Srinivas
bf268f02a3
Remove gcp in-tree cloud provider and credential provider
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-05-01 09:03:53 -04:00
Kubernetes Prow Robot
dbb7004385
Merge pull request #121256 from liyuerich/workqueue
drop deprecated workqueue NewNamed package
2024-04-29 09:33:05 -07:00