Commit graph

53191 commits

Author SHA1 Message Date
roc
bfa33b18a0 fix(kube-proxy) avoid add zero-masked loadBalancerSourceRanges to ipset
Signed-off-by: roc <roc@imroc.cc>
2025-07-18 09:55:39 +08:00
Kubernetes Prow Robot
033ffc73d6
Merge pull request #132299 from aramase/aramase/f/authn_config_hash_metric
Add `last_config_info` metric for authn, authz and encryption config
2025-07-17 18:24:24 -07:00
Kubernetes Prow Robot
4a80270b30
Merge pull request #133012 from tallclair/mem-lim-decrease
[FG:InPlacePodVerticalScaling] Support reducing memory limits
2025-07-17 17:10:39 -07:00
Kubernetes Prow Robot
843414555f
Merge pull request #132983 from chengjoey/cleanup/allocation-manager
[FG:InPlacePodVerticalScaling] cleanup: fetch individual PodResourceInfo from allocated resource state
2025-07-17 17:10:32 -07:00
Kubernetes Prow Robot
99f55ae4ef
Merge pull request #132662 from gnufied/bump-recovery-feature-ga
Bump recovery feature ga
2025-07-17 17:10:25 -07:00
Kubernetes Prow Robot
d7cce80685
Merge pull request #133040 from sunnylovestiramisu/fixDescription
Update VolumeAttributesClass API Description
2025-07-17 15:58:59 -07:00
Kubernetes Prow Robot
27ef1d4eed
Merge pull request #132033 from pohly/dra-scheduler-filter-timeout
DRA scheduler: implement filter timeout
2025-07-17 15:58:24 -07:00
Anish Ramasekar
21e2fcea9e
Add automatic_reload_last_config_info metric for auth configs
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-07-17 17:47:51 -05:00
Kubernetes Prow Robot
3dd0e86190
Merge pull request #132821 from cici37/mapBeta
[KEP-3962]Promote MutatingAdmissionPolicy to Beta
2025-07-17 14:18:24 -07:00
Tim Allclair
c7a78185c2 Remove the restriction on memory limit decrease 2025-07-17 13:17:35 -07:00
Tim Allclair
d9c91127d0 Check memory usage before decreasing limits 2025-07-17 13:17:35 -07:00
Patrick Ohly
5cea72d564 DRA integration: add test case for FilterTimeout
This covers disabling the feature via the configuration, failing to schedule
because of timeouts for all nodes, and retrying after ResourceSlice changes with
partial success (timeout for one node, success for the other).

While at it, some helper code gets improved.
2025-07-17 21:18:28 +02:00
Patrick Ohly
bc338e7505 DRA scheduler: implement filter timeout and cancellation
The intent is to catch abnormal runtimes with the generously large default
timeout of 10 seconds.

We have to set up a context with the configured timeout (optional!), then
ensure that both CEL evaluation and the allocation logic itself properly
returns the context error. The scheduler plugin then can convert that into
"unschedulable".

The allocator and thus Filter now also check for context cancellation by the
scheduler. This happens when enough nodes have been found.
2025-07-17 21:18:28 +02:00
Sunny Song
1745094c40 Update VolumeAttributesClass API Description 2025-07-17 18:40:01 +00:00
Patrick Ohly
025c606e39 DRA scheduler: add plugin configuration
The only option is the filter timeout.
The implementation of it follows in a separate commit.
2025-07-17 16:47:47 +02:00
Patrick Ohly
ee38a00131 DRA scheduler: add DRASchedulerFilterTimeout feature gate
Initializing the scheduler Features struct will be needed in different places,
therefore NewSchedulerFeaturesFromGates gets introduced. Besides, having it
next to the struct makes it easier to add new features.

The DRASchedulerFilterTimeout feature gate simplifies disabling the timeout
because setting a feature gate is often easier than modifying the scheduler
configuration with a zero timeout value.

The timeout and feature gate are new. The gate starts as beta and enabled by
default, which is consistent with the "smaller changes with low enough risk
that still may need to be disabled..." guideline.
2025-07-17 16:47:47 +02:00
Patrick Ohly
837ef29f5a scheduler: enhance and document Filter cancellation
When using context.CancelCause in the scheduler and context.Cause in plugins,
the status returned by plugins is more informative than just "context
canceled".

Context cancellation itself is not new, but many plugin authors probably
weren't aware of it because it wasn't documented.
2025-07-17 16:47:47 +02:00
Kubernetes Prow Robot
d33af7f7ef
Merge pull request #133020 from pohly/apimachinery-list-map-keys
support optional listMapKeys in server-side apply
2025-07-17 06:34:24 -07:00
Kubernetes Prow Robot
b2d7149090
Merge pull request #133011 from ylink-lfs/chore/residual_int64ptr_removal
chore: remove residual int64ptr usage with ptr.To
2025-07-17 02:58:24 -07:00
Kubernetes Prow Robot
71b8ad965e
Merge pull request #132976 from yliaog/allocator
refactor allocator, removed claimsToAllocate from NewAllocator(), instead, passed it through Allocate()
2025-07-17 01:48:31 -07:00
Patrick Ohly
a1a85ddb16 SSA: test optional map keys
As of structured-merge-diff v6.3.0, list map keys may be optional, as long as
at least one key is provided.
2025-07-17 09:56:28 +02:00
Patrick Ohly
3357e8fc05 SSA: add integration tests
test/integration/apiserver/apply covers the behavior of server-side-apply (SSA)
for official APIs. But there seem to be no integration tests which cover the
semantic of SSA like adding/removing/updating entries in a list map. This adds
such a test.

It needs an API which is under control of the test and uses
k8s.io/apimachinery/pkg/apis/testapigroup for that purpose, with some issues
fixed (OpenAPI code generation complained) and a new list map added.

Registering that API group in the apiserver needs a REST storage and
strategy. The API group only gets added in the test. However, the production
code has to know about it. In particular,
pkg/generated/openapi/zz_generated.openapi.go has to describe it.
2025-07-17 09:56:28 +02:00
Kubernetes Prow Robot
729cf12002
Merge pull request #132973 from tallclair/mem-lim-decrease-stats
Add PodCPUAndMemoryStats to stats.Provider interface
2025-07-16 20:02:37 -07:00
Kubernetes Prow Robot
8f312e6fbf
Merge pull request #132348 from iholder101/swap/add-container-swap-limit-metric
[KEP-2400] Add a container_swap_limit_bytes metric
2025-07-16 20:02:30 -07:00
Kubernetes Prow Robot
a08b85c9f6
Merge pull request #132847 from ylink-lfs/test/pod_update_ut
test: increase test coverage for pkg/kubelet/types
2025-07-16 18:56:37 -07:00
Kubernetes Prow Robot
6f29199af5
Merge pull request #131926 from esotsal/update_history_of_checkpointing_support
[doc] Update history of checkpoint support in Kubelet
2025-07-16 18:56:30 -07:00
Kubernetes Prow Robot
803ec16f56
Merge pull request #130430 from simonfogliato/kubelet-test-duplicate-line
Removed kubelet test duplicate line.
2025-07-16 18:56:23 -07:00
joey
1b5a08cbfb cleanup: fetch individual PodResourceInfo from allocated resource state
Signed-off-by: joey <zchengjoey@gmail.com>
2025-07-17 09:51:42 +08:00
ylink-lfs
ad220eb6c3 chore: remove residual int64ptr usage with ptr.To 2025-07-17 09:08:12 +08:00
Tim Allclair
a964468638 Add PodCPUAndMemoryStats to stats.Provider interface 2025-07-16 15:59:55 -07:00
Kubernetes Prow Robot
f130a825c2
Merge pull request #132994 from utam0k/kep-5278-feature-gate
Add NominatedNodeNameForExpectation feature flag
2025-07-16 12:12:45 -07:00
Kubernetes Prow Robot
2fdba619ab
Merge pull request #132979 from ylink-lfs/chore/residual_intptr_removal
chore: residual intptr removal with ptr.To
2025-07-16 12:12:38 -07:00
Kubernetes Prow Robot
190b3cca2b
Merge pull request #132212 from astraw99/fix-sts-validation
Add validation of `volumeClaimTemplates` in StatefulSet
2025-07-16 11:04:23 -07:00
yliao
dd3691b169 refactor allocator, removed claimsToAllocate from NewAllocator(), instead, passed it through Allocate() 2025-07-16 15:11:11 +00:00
utam0k
52fab5969c
Add NominatedNodeNameForExpectation feature flag
Signed-off-by: utam0k <k0ma@utam0k.jp>
2025-07-16 21:33:33 +09:00
Marek Siarkowicz
fd23fa3d42 Graduate ListFromCacheSnapshot to Beta 2025-07-16 12:52:01 +02:00
Kubernetes Prow Robot
d5b2a0438d
Merge pull request #132401 from togettoyou/refactor-admission-plugin-flags
Refactor: isolate flag registration to kube-apiserver to eliminate global state
2025-07-15 22:44:29 -07:00
Cici Huang
a100dfdfaa Using alpha as the stored version for one release. 2025-07-16 05:11:52 +00:00
astraw99
6e93244532 Add validation of volumeClaimTemplates in StatefulSet 2025-07-16 12:24:35 +08:00
Kubernetes Prow Robot
b77dd78ea9
Merge pull request #132924 from serathius/watchcache-hpa
Prevent running two HPA cachers for different API versions
2025-07-15 20:58:29 -07:00
Kubernetes Prow Robot
be2e836c0e
Merge pull request #129404 from champly/fix-killpodoptions-serialization
fix: killPodOptions support JSON serialization
2025-07-15 20:58:22 -07:00
Junhao Zou
ae4a43de6d Refactor: isolate flag registration to kube-apiserver to eliminate global state 2025-07-16 11:01:37 +08:00
ylink-lfs
5b4c1872a0 chore: residual intptr removal with ptr.To 2025-07-16 09:07:25 +08:00
Kubernetes Prow Robot
e55e75f6d9
Merge pull request #132768 from enj/enj/f/authn_egress
Add egress selector support to JWT authenticator
2025-07-15 17:48:29 -07:00
Kubernetes Prow Robot
584de05d47
Merge pull request #131157 from natasha41575/fix-resize-observedgen
[FG:InPlacePodVerticalScaling] fix observedGeneration in pod resize conditions
2025-07-15 17:48:22 -07:00
Kubernetes Prow Robot
f1bca15796
Merge pull request #132744 from xigang/probe_exec
kubelet: enhance exec probe logging with pod and container context
2025-07-15 13:16:37 -07:00
Monis Khan
b69fd9d42c
Add egress selector support to JWT authenticator
This change adds the StructuredAuthenticationConfigurationEgressSelector
beta feature (default on).  When enabled, each JWT authenticator
specified via the AuthenticationConfiguration.jwt array can
optionally specify either the controlplane or cluster egress
selector by setting the issuer.egressSelectorType field.  When
unset, the prior behavior of using no egress selector is retained.

Egress selection is valuable when the persona configuring the JWT
authenticator and the persona managing the control plane are
different individuals.  This change allows the latter to protect
control plane network services from unexpected connections.

Signed-off-by: Monis Khan <mok@microsoft.com>
2025-07-15 16:03:07 -04:00
Kubernetes Prow Robot
a76eddf608
Merge pull request #132548 from gavinkflam/130656-fix-duplicate-validations-2
bug: Remove duplicate DaemonSet update validations
2025-07-15 12:06:30 -07:00
Natasha Sarkar
62521d8350 fix observedGeneration in pod resize conditions 2025-07-15 18:23:30 +00:00
Kubernetes Prow Robot
05a596033c
Merge pull request #132958 from aroradaman/revert-130837-kube-proxy-node-manager
Revert "Kube proxy node manager"
2025-07-15 10:56:52 -07:00