Commit Graph

47565 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
e81c24dfb8 Merge pull request #118497 from mimowo/fix-kubelet-regression
Proceed with deletion of rejected pods after Kubelet restart
2023-06-23 14:05:07 -07:00
Kubernetes Prow Robot
a48bcc06fe Merge pull request #117064 from RomanBednar/multiple-defaults
storage class assignment should not ignore errors
2023-06-23 03:09:23 -07:00
Kubernetes Prow Robot
9325a57125 Merge pull request #118765 from mimowo/job-controller-unit-tests
Do not set jm.syncJobBatchPeriod=0 if not needed
2023-06-22 10:25:41 -07:00
Michal Wozniak
8ed23558b4 Do not set jm.syncJobBatchPeriod=0 if not needed 2023-06-22 11:10:53 +02:00
Michal Wozniak
17013d3960 Review remarks to improve HandlePodCleanups in kubelet 2023-06-22 10:55:39 +02:00
Michal Wozniak
e3ee9b9adc Fix the deletion of rejected pods 2023-06-22 09:18:34 +02:00
Kubernetes Prow Robot
3e28404008 Merge pull request #118485 from MikeSpreitzer/generic-apf-strategy
Use generics to simplify pkg/registry/flowcontrol/ensurer
2023-06-21 23:57:40 -07:00
Mike Spreitzer
92a35f5bca Usse generics to simplify pkg/registry/flowcontrol/ensurer
Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
2023-06-22 00:56:54 -04:00
Kubernetes Prow Robot
d0accc3f02 Merge pull request #118049 from helayoty/sched-queue-gated-timestamp
Unset gated podinfo InitialAttemptTimestamp in addToActiveQ
2023-06-21 17:49:39 -07:00
Kubernetes Prow Robot
a19153ded9 Merge pull request #118403 from skitt/ioutil-sig-storage
storage: stop using deprecated io/ioutil
2023-06-21 16:49:41 -07:00
Heba Elayoty
902c711fb4 Unset gated pod info timestamp in addToActiveQ
Signed-off-by: Heba Elayoty <hebaelayoty@gmail.com>
2023-06-21 14:16:08 -07:00
Kubernetes Prow Robot
28296ba59e Merge pull request #113994 from mengjiao-liu/contextual-logging-controller-certificates
certificate controller: use contextual logging
2023-06-21 09:03:42 -07:00
Roman Bednar
1bd3f072fa stop ignoring storage class selection errors
The GetDefaultClass() was fixed in scope of this issue:
https://github.com/kubernetes/kubernetes/issues/110514

Before this change assignDefaultStorageClass() was ignoring errors from
this function since it could mean there are multiple defaults - assign
could safely continue and do nothing.

This is no longer true because we always choose one from multiple
defaults - any errors returned from GetDefaultClass() are real errors
and should not be ignored.
2023-06-21 13:09:05 +02:00
Kubernetes Prow Robot
9e0569f2ed Merge pull request #118779 from dims/add-a-connection-backoff-to-talk-to-cri-impls
Add a connection backoff to talk to CRI impls
2023-06-20 20:04:21 -07:00
Davanum Srinivas
c98e72841b Add a connection backoff to talk to CRI impls
We can add backoff for connection like we do in cadvisor:
https://github.com/google/cadvisor/blob/master/container/containerd/client.go#L76-L80

for now, don't tune it, just use the default:
https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-06-20 21:32:50 -04:00
Kubernetes Prow Robot
5a1c62b9d1 Merge pull request #118763 from Shubham82/remove_AdvancedAuditing_featuregate
Remove AdvancedAuditing feature gate.
2023-06-20 17:48:32 -07:00
Kubernetes Prow Robot
bc8e312857 Merge pull request #117903 from sourcelliu/dynamic
feature(DynamicResources): return Skip in PreFilter
2023-06-20 17:48:20 -07:00
Kubernetes Prow Robot
9d90b76bd6 Merge pull request #118552 from humblec/rbd-deprecation
deprecate RBD plugin from available in-tree drivers
2023-06-20 16:50:23 -07:00
Stephen Kitt
ab75e48494 storage: stop using deprecated io/ioutil
This replaces deprecated ioutil variables and functions as follows:

* ioutil.ReadDir -> os.ReadDir
* ioutil.ReadFile -> os.ReadFile
* ioutil.TempDir -> os.MkdirTemp
* ioutil.TempFile -> os.CreateTemp
* ioutil.WriteFile -> os.WriteFile

The ReadDir conversion involves an API change, the replacement
function returns a slice of fs.DirEntry instead of fs.FileInfo.
Where appropriate, the surrounding code has been adjusted; mostly,
that means using DirEntry.Type() instead of FileInfo.Mode().
Applying this change to the IoUtil interface would mean changing its
API, so this is left for later.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-06-20 16:49:03 +02:00
Michal Wozniak
784a309b91 Do not error in Job controller sync when there are pod failures 2023-06-20 11:31:24 +02:00
shubham82
f2e3157df0 Remove AdvancedAuditing feature gate. 2023-06-20 14:21:10 +05:30
Aldo Culquicondor
c9b01dd977 Fix race in logging expectations
Change-Id: I27da7cae741935da6f0815639a54bfd597a2a6c6
2023-06-19 13:26:39 -04:00
Kubernetes Prow Robot
988094878e Merge pull request #108075 from ialidzhikov/cleanup/pointer-duration
Make use of `k8s.io/utils/pointer.Duration`
2023-06-19 05:22:21 -07:00
Kubernetes Prow Robot
bfd833baf3 Merge pull request #115982 from peaaceChoi/master
Update toplogy keyset initialization
2023-06-19 04:04:21 -07:00
ialidzhikov
958c8fb695 Make use of k8s.io/utils/pointer.Duration
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2023-06-18 21:46:26 +03:00
Michal Wozniak
74c5ff97f1 Lower the constants for the rate limiter in Job controller 2023-06-16 17:00:04 +02:00
Humble Chirammal
f54c15d4e8 Change the fieldpath in the deprecated plugin response
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
Signed-off-by: carlory <baofa.fan@daocloud.io>
2023-06-16 19:47:03 +05:30
Humble Chirammal
471fd1ae8a deprecate RBD plugin from available in-tree drivers
Based on https://groups.google.com/g/kubernetes-sig-storage/c/h5751_B5LQM, the
consensus was to start the deprecation in v1.28.

This commit start the deprecation process of RBD plugin from in-tree
drivers.

ACTION REQUIRED:
   RBD volume plugin ( `kubernetes.io/rbd`) has been deprecated in this release
   and will be removed in a subsequent release. Alternative is to use RBD CSI driver
   (https://github.com/ceph/ceph-csi/) in your Kubernetes Cluster.

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-06-16 19:45:36 +05:30
Michal Wozniak
c51a422d78 Cleanup job controller handling of backoff 2023-06-16 14:53:27 +02:00
Kubernetes Prow Robot
58d7a794d2 Merge pull request #113504 from pacoxu/taint-unit-test
AddOrUpdateTaintOnNode: if node does not exists, return an error
2023-06-15 17:48:19 -07:00
Kubernetes Prow Robot
b637006302 Merge pull request #118420 from alculquicondor/job_warnings
Add warnings for big number of completions and parallelism
2023-06-15 14:24:18 -07:00
Kubernetes Prow Robot
6a79a8a57c Merge pull request #115835 from HirazawaUi/fix-terminationGracePeriod-bug
fix terminationGracePeriod blocked by preStop
2023-06-14 10:34:18 -07:00
Kubernetes Prow Robot
47e79b8156 Merge pull request #116910 from fatsheep9146/job-controller-contextual-logging
Migrated pkg/controller/job to contextual logging
2023-06-14 08:00:18 -07:00
Aldo Culquicondor
c27f9fdeb7 Add warnings for big number of completions and parallelism
Change-Id: I63e192b1ce9da7d8bb04f8be1a6e19ec6fbbfa5a
2023-06-14 10:38:42 -04:00
Kubernetes Prow Robot
173a473803 Merge pull request #118128 from carlory/fix-issue-118120
remove helper function for unused storage feature in pkg/proxy/util
2023-06-14 04:28:18 -07:00
Ziqi Zhao
7bc449d7e0 add contextual logging to job-controller
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-06-14 13:40:02 +08:00
Kubernetes Prow Robot
9740bc0e0a Merge pull request #118606 from sanposhiho/refactor-score
refactor: simplify RunScorePlugins for readability + performance
2023-06-13 21:41:57 -07:00
Kubernetes Prow Robot
e80e6b8e5a Merge pull request #118597 from tkashem/apf-refactor
apf: refactor bootstrap ensure strategy
2023-06-13 04:59:58 -07:00
Kubernetes Prow Robot
3b44969134 Merge pull request #118460 from serathius/componentstatuses
Make etcd component status consistent with health probes
2023-06-13 02:17:58 -07:00
Marek Siarkowicz
a60314c47e Make etcd component status consistent with health probes
Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2023-06-13 10:10:29 +02:00
carlory
5e048041e4 remove helper function for unused storage feature in pkg/proxy/util 2023-06-13 09:22:59 +08:00
Kubernetes Prow Robot
86d786090a Merge pull request #117793 from tzneal/memory-oom-group-support
use the cgroup aware OOM killer if available
2023-06-12 14:45:58 -07:00
Todd Neal
4e20a8f52b kill all processes in a container in the event of OOM
Set memory.oom.group if using cgroups v2 unified mode so all processes in
the container will be killed together in the event of an OOM kill.
2023-06-12 15:49:01 -05:00
Kubernetes Prow Robot
d627045949 Merge pull request #118373 from saschagrunert/seccomp-unused
Remove unused `getSeccompProfilePath` helper function
2023-06-12 13:46:57 -07:00
Kubernetes Prow Robot
1de217b095 Merge pull request #118278 from mimowo/fix-pod-failure-policy-comments
Update podFailurePolicy comment from alpha-level to beta
2023-06-12 13:46:49 -07:00
Kubernetes Prow Robot
da4646c080 Merge pull request #118096 from tnqn/fix-confusing-check
Remove undesired verbose fields from log
2023-06-12 13:46:42 -07:00
Kubernetes Prow Robot
9d231f8ce7 Merge pull request #118329 from danwinship/fix-dual-stack-cloud-node-ip-annotation
Set the node-ips annotation correctly with CloudDualStackNodeIPs
2023-06-12 11:44:10 -07:00
Kubernetes Prow Robot
8a0b1bbf24 Merge pull request #118095 from carlory/patch-002
remove unused pv informer from expand_controller
2023-06-12 11:43:58 -07:00
Kubernetes Prow Robot
18d05b646d Merge pull request #117702 from kannon92/pod-ready-to-start-rename
feat: rename PodHasNetwork to PodReadyToStartContainers
2023-06-11 18:59:48 -07:00
Kensei Nakada
a7eb7ed5c6 refactor: simplify RunScorePlugins for readability + performance 2023-06-11 03:29:05 +00:00