Commit Graph

52798 Commits

Author SHA1 Message Date
zhangzhifei16
0a86ca4061 Add healthChecker to the kubeDeps 2025-06-10 21:14:17 +08:00
zhangzhifei16
4a7e68a355 fix: Fix the issue where kubelet's slow startup causes it to be mistakenly killed by the watchdog.
Add a lock for checkers and improve the unit test.

format code.

fix unit test
2025-06-09 21:27:57 +08:00
Kubernetes Prow Robot
43bb11b5c1 Merge pull request #131534 from aroradaman/kube-proxy-ipt-init-error-2
kube-proxy: log iptables errors in platformCheckSupported
2025-06-06 21:08:38 -07:00
Kubernetes Prow Robot
92de708958 Merge pull request #132139 from hoskeri/kubeletlog
kuberuntime_manager: don't log entire container spec.
2025-06-06 15:04:38 -07:00
Kubernetes Prow Robot
b5504bc2ae Merge pull request #132148 from soltysh/drop_poddisruptionconditions
KEP-3329: drop PodDisruptionConditions feature gate
2025-06-06 13:38:45 -07:00
Kubernetes Prow Robot
a26f3fd5c6 Merge pull request #132109 from linxiulei/jobdelay
Clean backoff record earlier
2025-06-06 13:38:38 -07:00
Abhijit Hoskeri
0d468f58c0 kuberuntime_manager: don't log entire container spec.
We shouldn't log all of spec.container because some fields
like args, env may contain sensitive data.

Most log lines involving containers log just the container.Name.
Fix the rest to match.

Change-Id: I3ca23d1f8338bdc7807ff84702222ee266730af1
2025-06-06 20:37:50 +00:00
Daman Arora
858b88bcee kube-proxy: log ipt errors during platformCheckSupported
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-06-07 01:14:33 +05:30
Eric Lin
1f46b3fdbf Clean backoff record earlier
Once received job deletion event, it cleans the backoff records for that
job before enqueueing this job so that we can avoid a race condition
that the syncJob() may incorrect use stale backoff records for a newly created
job with same key.

Co-authored-by: Michal Wozniak <michalwozniak@google.com>
2025-06-06 18:31:38 +00:00
Kubernetes Prow Robot
5090812df4 Merge pull request #132103 from nojnhuh/typed-ring-buffer
Replace queue.FIFOs with k8s.io/utils/buffer.Ring
2025-06-06 10:26:39 -07:00
Kubernetes Prow Robot
9c4cebb199 Merge pull request #132147 from soltysh/drop_elasticindexedjob
KEP-3715: drop ElasticIndexedJob feature gate
2025-06-06 08:16:39 -07:00
Maciej Szulik
beb86a8391 KEP-3329: drop PodDisruptionConditions feature gate
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-06-06 16:15:30 +02:00
Maciej Szulik
b5a8f5d0a5 KEP-3715: drop ElasticIndexedJob feature gate
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-06-06 16:08:21 +02:00
carlory
0896693693 fix TestNodeAffinityPriority: calculate the priorities correctly even if PreScore is not called 2025-06-06 16:03:46 +08:00
Kubernetes Prow Robot
bbb4291153 Merge pull request #132119 from soltysh/drop_statefulsetordinal
KEP-3335: drop StatefulSetStartOrdinal feature gate
2025-06-05 15:28:45 -07:00
Maciej Szulik
2bf3d8b733 KEP-3335: drop StatefulSetStartOrdinal feature gate
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-06-05 14:02:44 +02:00
Kubernetes Prow Robot
7f50c56b1a Merge pull request #131979 from serathius/watchcache-initialization-ga
Gradute ResilientWatchCacheInitialization to GA
2025-06-05 03:02:38 -07:00
Kubernetes Prow Robot
544e7a63e2 Merge pull request #132105 from tallclair/ippr-preemption
Preempt based based on allocated resources rather than desired
2025-06-04 18:26:37 -07:00
Kubernetes Prow Robot
f9ad9d2b16 Merge pull request #132102 from tallclair/allocation-failure
Only set pod allocation if admission succeeds
2025-06-04 14:46:45 -07:00
Kubernetes Prow Robot
5b248e1579 Merge pull request #132095 from esotsal/podResizeMutex-cleanup
Remove unecessary comment since podResizeMutex no longer exist.
2025-06-04 13:40:44 -07:00
Tim Allclair
d6ec03a130 Preempt based based on allocated resources rather than desired 2025-06-04 13:28:20 -07:00
Kubernetes Prow Robot
0731167a99 Merge pull request #131996 from ritazh/dra-adminaccess-updatelabelkey
DRAAdminAccess: update label key
2025-06-04 12:16:45 -07:00
Jon Huhn
7d47165e3e Replace queue.FIFOs with k8s.io/utils/buffer.Ring 2025-06-04 13:48:11 -05:00
Tim Allclair
705e89b046 Only set pod allocation if admission succeeds 2025-06-04 11:45:12 -07:00
Sotiris Salloumis
f8b893489c Update pkg/kubelet/kubelet_test.go
Co-authored-by: Natasha Sarkar <natashasarkar@google.com>
2025-06-04 20:36:15 +02:00
Sotiris Salloumis
4c7840ec5d podResizeMutex cleanup
Remove unecessary comment since
podResizeMutex no longer exist.
2025-06-04 15:33:27 +02:00
Kubernetes Prow Robot
68a0142976 Merge pull request #131980 from LucaBernstein/fix-typo
Fix typo in the `--anonymous-auth` flag name
2025-06-03 14:34:37 -07:00
Kubernetes Prow Robot
a883be6e36 Merge pull request #132031 from atiratree/update-getRSPods
add orphanedPods parameter to getRSPods and improve code flow in syncReplicaSet
2025-06-03 12:10:39 -07:00
Kubernetes Prow Robot
62f72addf2 Merge pull request #120816 from tnqn/fix-unreachable-taint-delay
NoExecute taint should be added when a Node's ready condition becomes Unknown
2025-06-03 00:54:44 -07:00
Kubernetes Prow Robot
b65f712d2c Merge pull request #131907 from gnufied/do-not-expand-non-expnadable-volumes
Do not expand non expnadable volumes
2025-06-02 21:38:37 -07:00
Kubernetes Prow Robot
901d1249b5 Merge pull request #131801 from natasha41575/move-handle-pod-additions
move pod admission and resize logic into the allocation manager
2025-06-02 13:42:38 -07:00
Natasha Sarkar
9b8d7ce498 pr review feedback 2025-06-02 17:51:03 +00:00
Kubernetes Prow Robot
849a82b727 Merge pull request #132036 from adrianmoisey/kep-4427
KEP-4427: Promote Relaxed DNS search string validation to GA
2025-06-01 14:02:43 -07:00
Kubernetes Prow Robot
7f139457c1 Merge pull request #131961 from cyclinder/fix_proxy_unknown_option
proxy: remove iptables wait interval flag
2025-06-01 14:02:36 -07:00
Kubernetes Prow Robot
002faa6baa Merge pull request #131847 from HirazawaUi/fix-test-leak
kubelet: Fix potential goroutine leak in unit tests
2025-05-31 13:00:11 -07:00
Adrian Moisey
0a7d9f9bfd KEP-4427: Promote Relaxed DNS search string validation to GA 2025-05-31 07:45:16 +02:00
Kubernetes Prow Robot
4832b57e48 Merge pull request #131968 from pohly/dra-kubelet-prepare-validation
DRA kubelet: validation pass before changing claim info cache
2025-05-30 12:40:19 -07:00
Kubernetes Prow Robot
e0859f91b7 Merge pull request #131887 from ania-borowiec/extract_cyclestate_interface
Moving Scheduler interfaces to staging: split CycleState into interface and implementation, move interface to staging repo
2025-05-30 04:00:18 -07:00
Cyclinder Kuo
0a96613754 proxy: remove iptables wait interval flag
Signed-off-by: cyclinder <kuocyclinder@gmail.com>
2025-05-30 16:13:06 +08:00
Patrick Ohly
a5aabf9f7e DRA kubelet: validation pass before changing claim info cache
If preparing for a pod failed because the driver was not registered, it failed
after already having added the pod and claim to the claim info cache. The
effect was that deletion of the pod was blocked until the driver got
installed. Other errors had a similar effect. Now as many errors as possible
are checked in a read-only loop before proceeding to changing the claim info
cache.

The error message that was surfaced for the problem was not very readable:
   Failed to prepare dynamic resources: failed to get gRPC client for driver dra-1411.k8s.io: plugin name dra-1411.k8s.io not found in the list of registered DRA plugins

To address this, error messages and wrapping get updated according to these
guidelines:

    // Most errors returned by the manager show up in the context of a pod.
    // They try to adher to the following convention:
    // - Don't include the pod.
    // - Use terms that are familiar to users.
    // - Don't include the namespace, it can be inferred from the context.
    // - Avoid repeated "failed to ...: failed to ..." when wrapping errors.
    // - Avoid wrapping when it does not provide relevant additional information to keep the user-visible error short.
2025-05-30 09:52:22 +02:00
Ania Borowiec
d75af825fb Extract interface CycleState and move is to staging repo. CycleState implementation remains in k/k/pkg/scheduler/framework 2025-05-29 16:18:36 +00:00
Kubernetes Prow Robot
cd3b5c5766 Merge pull request #131658 from dims/allow-specifying-a-directory-for-image-credential-providers-json-configuration
Allow specifying a directory for image credential providers json configuration
2025-05-29 07:46:20 -07:00
Davanum Srinivas
be6807e6a5 Allow specifying a directory for image credential providers json/yaml configuration
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-29 09:42:26 -04:00
Filip Křepinský
aac00c1f0e add orphanedPods parameter to getRSPods
and improve code flow in syncReplicaSet
2025-05-29 10:50:32 +02:00
Hemant Kumar
96b5ae792b Add code for not expanding volume if it has NodeExpansionNotRequired annotation 2025-05-28 13:07:34 -04:00
Hemant Kumar
4654496c39 Add code to not expand certain types of volumes 2025-05-28 10:22:35 -04:00
Marek Siarkowicz
741d0e2b81 Gradute ResilientWatchCacheInitialization to GA 2025-05-28 11:21:57 +02:00
Rita Zhang
5058e385b0 DRAAdminAccess: update label key
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
2025-05-27 21:19:25 -07:00
Kubernetes Prow Robot
2f94274c88 Merge pull request #131562 from logica0419/kube-proxy-string-concat
Add missing space in string concatenation (kube-proxy)
2025-05-27 13:36:22 -07:00
Kubernetes Prow Robot
830c76ac83 Merge pull request #131970 from skitt/kubelet-pkg-errors
kubelet: drop dependency on github.com/pkg/errors
2025-05-27 10:18:34 -07:00