Commit Graph

52580 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
fe5afa919b Merge pull request #130333 from kmala/job
handle job complete update delayed event
2025-04-25 17:55:22 -07:00
Kubernetes Prow Robot
e2ccbd255c Merge pull request #130362 from aojea/node_addresses_init
Use node addresses from informer in kubelet certificate manager
2025-04-25 11:25:22 -07:00
Kubernetes Prow Robot
375f282985 Merge pull request #131408 from gnufied/remove-unknown-resizing-error
Remove warning about resizing failed for unknown reason
2025-04-25 09:41:24 -07:00
Paco Xu
89156452ae fix nil pointer panic on windows node 2025-04-25 15:38:14 +08:00
Antonio Ojea
1214dc223c kubelet: Use node addresses from informer
The kubelet certificate manager was using a closure to get the node addresses,
but this closure depended on a static field that was only updated during the node
status update. This created a twisted dependency between the node.status
reconcile loops and the certificate manager.

This commit fixes this issue by using the node informer to get the node addresses directly.
This ensures that the kubelet always requests a certificate with the latest node addresses.
2025-04-25 03:15:42 +00:00
Kubernetes Prow Robot
595516a149 Merge pull request #130468 from jingyuanliang/PodAntiAffinity
fix: comment on preferred PodAntiAffinity
2025-04-24 12:00:34 -07:00
Kubernetes Prow Robot
08f32728b9 Merge pull request #131311 from gnufied/fix-csi-json-file-removal
Fix error handling and csi json file removal interaction
2025-04-24 10:52:38 -07:00
Kubernetes Prow Robot
c59203e051 Merge pull request #121967 from torredil/update-logging
Update log verbosity for node health and taint checks
2025-04-24 06:22:34 -07:00
Kubernetes Prow Robot
71e7f9eba7 Merge pull request #131425 from carlory/follow-up-128810
Remove deprecated scheduler cache metrics
2025-04-24 04:56:29 -07:00
Kubernetes Prow Robot
5ec7b65318 Merge pull request #131418 from gnufied/check-recovery-feature-kubelet
Check for newer fields when deciding expansion recovery feature status
2025-04-23 21:10:37 -07:00
carlory
24257f2d31 Remove deprecated scheduler cache metrics 2025-04-24 11:45:38 +08:00
Kubernetes Prow Robot
e49376db5e Merge pull request #131393 from xigang/extension_api
fix: use correct apiextensions v1 API instead of apiregistration v1
2025-04-23 18:21:28 -07:00
Kubernetes Prow Robot
93cc525932 Merge pull request #131333 from tenzen-y/fix-successpolicy-api-comment
Job: Fix API comments for SuccessCriteriaMet
2025-04-23 18:20:58 -07:00
Kubernetes Prow Robot
75c640bc02 Merge pull request #131278 from haosdent/haosdent/remove-redundant-call
scheduler: remove duplicate nominatedNodeName clearing in preemption
2025-04-23 18:20:30 -07:00
Kubernetes Prow Robot
aa9e98805c Merge pull request #131256 from mimowo/job-improve-backoff-docs
Improve Job API comment for the backoffLimit
2025-04-23 17:09:58 -07:00
Kubernetes Prow Robot
b33a199415 Merge pull request #131251 from ndbaker1/free-image-race
fix(kubelet): acquire imageRecordsLock when removing image
2025-04-23 17:09:50 -07:00
Kubernetes Prow Robot
077a382170 Merge pull request #131242 from zhifei92/update-mockery-version
Upgrade the mockery version to v2.53.3
2025-04-23 17:09:43 -07:00
Kubernetes Prow Robot
a9c75b0da8 Merge pull request #131213 from carlory/fix-131045
Fix the allocatedResourceStatuses Field name mismatch in PVC status validation
2025-04-23 17:09:06 -07:00
Kubernetes Prow Robot
b9d2c1b043 Merge pull request #131138 from princepereira/ppereira-130963-endpointcreation
Fix for HNS local endpoint was being deleted instead of the remote endpoint.
2025-04-23 16:00:11 -07:00
Kubernetes Prow Robot
a7dd57e5d3 Merge pull request #131076 from tallclair/quota-cleanup
Deduplicate MilliCPUToQuota function & constants
2025-04-23 15:59:21 -07:00
Kubernetes Prow Robot
ea04d665da Merge pull request #131061 from aramase/aramase/c/kep_4412_add_unique_req
clarify mutual exclusivity of service account annotation keys in godoc
2025-04-23 15:59:06 -07:00
Luca Lanziani
2ea6892077 Always check for Immutable selector in Deployment Replicaset Daemonset (#131017)
* Always for Immutable selector in Deployment Replicaset Daemonset

With extensions/v1beta1 removed there is no need of a special case
to check for Spec.Selector immutability.

The ValidateImmutableField is now moved into the
Validate[Resource]Update method, tests for v1beta1 are removed and test
for v1 are added.

Validation tests were updated to reflect the changes,
mostly decoupling other fields changes from selectors and creating a
dedicated case to test selector immutability.

* Move validation inside appropriate function

* Fix validation tests
2025-04-23 15:58:37 -07:00
Kubernetes Prow Robot
b775f9b92f Merge pull request #130994 from BenTheElder/host-network-no-port
Remove inaccurate doc comment from podspec hostNetwork field
2025-04-23 14:40:36 -07:00
Kubernetes Prow Robot
8cdc67c7fd Merge pull request #130966 from sanposhiho/patch-16
chore: correct the comment on UnschedulablePlugins
2025-04-23 13:31:57 -07:00
Kubernetes Prow Robot
25222679ec Merge pull request #130928 from Jefftree/patch-4
Tag api change instead of apimachinery on generated openapi changes
2025-04-23 13:31:50 -07:00
Kubernetes Prow Robot
9d1363eff6 Merge pull request #130852 from Chulong-Li/contextual-logging
Migrate pkg/kubelet/status to contextual logging
2025-04-23 13:31:43 -07:00
Kubernetes Prow Robot
8a6b916765 Merge pull request #130720 from saintube/scheduler-expose-nodeinfo-in-prefilter
Expose NodeInfo to PreFilter plugins
2025-04-23 13:31:29 -07:00
Kubernetes Prow Robot
13dd327f0d Merge pull request #130687 from tomma-a/master
Made the unsupportedError msg more readable
2025-04-23 13:31:21 -07:00
Rafael Franzke
fa8e37f780 Allow disabling caching for webhook authorizers when using apiserver.config.k8s.io/v1{alpha1,beta1}.AuthorizationConfiguration (#129237)
* Introduce new boolean `cache{Una,A}uthorizedRequests` field

* Run `hack/update-codegen.sh`

* Respect legacy flags values for caching

With the legacy `--authorization-webhook-cache-{un}authorized-ttl`
flags, caching was disabled when the TTL was set to `0`, so let's
continue doing so when building the authz configuration struct.

* Pass TTL=0 to webhook authz plugin when cache disabled
2025-04-23 13:30:52 -07:00
Kubernetes Prow Robot
04b1ef3624 Merge pull request #129145 from ialidzhikov/fix/confusing-err-message
kube-scheduler: Fix a misleading error message in the VolumeRestrictions plugin
2025-04-23 13:30:45 -07:00
Hemant Kumar
1db2d6a018 Mark NodeExpansion finsihed without featuregate check 2025-04-23 16:15:10 -04:00
Hemant Kumar
70ebe90b13 Also change final status by removing featuregate check 2025-04-23 16:05:56 -04:00
Hemant Kumar
0e40ed642b Check for newer fields when deciding expansion recovery feature status 2025-04-23 11:37:22 -04:00
Hemant Kumar
90de4b5894 Remove warning about resizing failed for unknown reason 2025-04-22 10:30:51 -04:00
xigang
64b4c96e20 fix: use correct apiextensions v1 API instead of apiregistration v1
Signed-off-by: xigang <wangxigang2014@gmail.com>
2025-04-21 08:44:04 +08:00
David Eads
660df229bf Stop exposing list-via-watch from the server
With StreamingCollectionEncodingToJSON and
StreamingCollectionEncodingToProtobuf, the WatchList must re-justify its
necessity.  To prevent an ecosystem from building around a feature that
may not be promoted, we will stop serving list-via-watch until
performance numbers can justify its inclusion.

This also stops the kube-controller-manager from using the
list-via-watch by default.  The fallback is a regular list, so during
the skew during an upgrade the "right" thing will happen and the new
StreamingCollectionEncoding will be used.
2025-04-18 09:21:23 -04:00
Yuki Iwai
db1e107150 Job: Fix API comments for SuccessCriteriaMet
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2025-04-17 00:42:26 +09:00
Haosdent Huang
ac3274521b scheduler: remove duplicate nominatedNodeName clearing in preemption
When preemption finds no candidates, it currently makes an explicit API
call to clear the pod's nominatedNodeName in findCandidates(). However,
this is redundant because:

1. When no candidates are found, Preempt() returns a PostFilterResult with
   an empty nominatedNodeName via NewPostFilterResultWithNominatedNode("")
2. This empty nominatedNodeName is propagated through the scheduling
   cycle to handleSchedulingFailure()
3. handleSchedulingFailure() then properly clears the nominatedNodeName
   through updatePod()

Remove the explicit ClearNominatedNodeName call in findCandidates() to
reduce unnecessary API calls while maintaining the same behavior.

This change improves performance by eliminating a duplicate API call
without changing the functional behavior of preemption.
2025-04-16 17:24:08 +08:00
Hemant Kumar
c704025a0e Fix error handling and csi json file removal interaction 2025-04-15 11:27:26 -04:00
Antonio Ojea
0266d3bcb3 Allow single-to-dual-stack reconfiguration for ServiceCIDR
This change modifies the validation logic for ServiceCIDR updates
(`ValidateServiceCIDRUpdate`) to specifically permit upgrading a
single-stack ServiceCIDR (either IPv4 or IPv6) to a dual-stack
configuration.

This reconfiguration path is considered safe because it only involves adding
a new CIDR range without altering the existing primary CIDR. This
ensures that existing Service IP allocations are not disrupted.

Other modifications, such as:
- Downgrading from dual-stack to single-stack
- Reordering CIDRs in a dual-stack configuration
- Changing the primary CIDR during a single-to-dual-stack
  reconfiguration

remain disallowed by the validation. These operations carry a higher
risk of breaking existing Services or cluster networking
configurations. Preventing these updates automatically encourages
administrators to perform such changes manually after carefully
assessing the potential impact on their specific cluster environment.
The validation errors and controller logs provide guidance when such
disallowed changes are attempted.

Change-Id: I41dc09dfddb05f277925da2262f8114d6accbd1d
2025-04-14 17:05:44 +00:00
Michal Wozniak
8f1326251c Improve Job API comment for the backoffLimit 2025-04-14 09:51:51 +02:00
Nick Baker
3b2cd12347 fix(kubelet): acquire imageRecordsLock when removing image 2025-04-11 17:17:46 +00:00
zhangzhifei16
c1ff9cf4e8 chore: Upgrade the mockery version to v2.53.3. 2025-04-10 21:16:47 +08:00
Kubernetes Prow Robot
88dfcb225d Merge pull request #131065 from pohly/dra-kubelet-registration-unit-test-fix
DRA kubelet: fix potential flake in unit test
2025-04-09 07:06:48 -07:00
carlory
88fbccd698 Fix the allocatedResourceStatuses Field name mismatch in PVC status validation 2025-04-09 16:21:38 +08:00
Keerthan Reddy Mala
d4fd41285b update the log message to reflect success and failed jobs 2025-04-08 10:21:02 -07:00
Prince Pereira
cc42846187 Fix for HNS local endpoint was being deleted instead of the remote endpoint. 2025-04-08 07:10:13 -07:00
Keerthan Reddy Mala
551f3c7824 merge the integration tests into a single one 2025-04-07 17:37:19 -07:00
Keerthan Reddy Mala
c7d0ed5c48 add integration test for job failure event delay and remove the unit test 2025-04-01 12:38:15 -07:00
Filip Křepinský
b0b89d3bd2 fix the DeploymentReplicaSetTerminatingReplicas version 2025-03-27 20:28:21 +01:00