Commit Graph

131225 Commits

Author SHA1 Message Date
Dan Winship
665599417a Add e2eendpointslice.WaitForEndpointSlices, use it in a few places
(This is mostly a helper for the other functions about to be added,
but it's useful by itself in a few places.)
2025-07-16 06:17:34 -04:00
Kubernetes Prow Robot
b1b15a57e6 Merge pull request #132838 from AwesomePatrol/drop-experimental-etcd-flags
Drop experimental flags from etcd
v1.34.0-beta.0
2025-07-16 02:18:23 -07: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
Kubernetes Prow Robot
7871085906 Merge pull request #132295 from pohly/dra-version-skew
DRA: automated upgrade/downgrade testing
2025-07-15 22:44:23 -07: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
Kubernetes Prow Robot
2be3069eb4 Merge pull request #132944 from serathius/watchcache-mark-inconsistent
Inconsistency resets cache snapshots and prevents collection of new ones until cache is marked consistent again
2025-07-15 18:54:22 -07: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 Release Robot
e9aab4648f CHANGELOG: Update directory for v1.31.11 release 2025-07-15 23:11:24 +00:00
Kubernetes Release Robot
dc0ca0be3f CHANGELOG: Update directory for v1.33.3 release 2025-07-15 22:19:29 +00:00
Kubernetes Release Robot
d6caa36dcc CHANGELOG: Update directory for v1.32.7 release 2025-07-15 22:18:25 +00: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
Kubernetes Prow Robot
20344f9aba Merge pull request #132345 from ffromani/e2e-podresourcesapi-labels
e2e: node: fix podresources API feature label
2025-07-15 13:16:29 -07:00
Kubernetes Prow Robot
3024ef872a Merge pull request #132163 from yue9944882/fix-audit-authn-latency
Bugfix: record authentication latency before audit filter wraps up
2025-07-15 13:16:22 -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
Kubernetes Prow Robot
06b62dcae7 Merge pull request #132276 from michaelasp/warningemu
Add warnings for use of Alpha features with Emulated Version
2025-07-15 12:06:23 -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
Kubernetes Prow Robot
394f412767 Merge pull request #132617 from aramase/aramase/f/kep_4412_pod_cache_key_type
Add ServiceAccountTokenCacheType support to credential provider plugin
2025-07-15 10:56:45 -07:00
Kubernetes Prow Robot
373b1bbf12 Merge pull request #132569 from pravk03/allocation-manager-test
test: Add unit tests for allocation manager AddPod()
2025-07-15 10:56:37 -07:00
Kubernetes Prow Robot
93c1605310 Merge pull request #131083 from HirazawaUi/clean-return-value
kubelet: Remove the unused 'error' parameter return from the GeneratePodStatus method
2025-07-15 10:56:30 -07:00
Kubernetes Prow Robot
1a1181677c Merge pull request #131018 from saschagrunert/default-masked-paths
Mask Linux thermal interrupt info in /proc and /sys.
2025-07-15 10:56:23 -07:00
Min Jin
3863726028 add unit-test for ensuring authn latency annotation
Signed-off-by: Min Jin <minkimzz@amazon.com>
2025-07-15 10:48:12 -07:00
Min Jin
760eb7d5de fix: record authentication latency before audit filter wraps up
Signed-off-by: Min Jin <minkimzz@amazon.com>
2025-07-15 10:39:08 -07:00
Kubernetes Prow Robot
f2bed63ca5 Merge pull request #131665 from carlory/fix-131645
deflake e2e tests: StatefulSet Non-retain StatefulSetPersistentVolume ClaimPolicy should delete PVCs after adopting pod (WhenScaled)
2025-07-15 08:24:23 -07:00
Marek Siarkowicz
20914ef4e9 Prevent running two HPA cachers for different API versions 2025-07-15 17:00:49 +02:00
Daman Arora
bc5088cbf3 Revert "Kube proxy node manager" 2025-07-15 19:34:05 +05:30
Aleksander Mistewicz
f8c7131b46 Drop experimental- prefix from etcd flags
They were deprecated in etcd 3.6.0 and were removed in 3.7.0:
https://github.com/etcd-io/etcd/pull/19959

InitialCorruptCheck is now a behind Etcd feature gate. The new flags are
set based on provided k8s version.

Signed-off-by: Aleksander Mistewicz <amistewicz@google.com>
2025-07-15 15:32:13 +02:00
Francesco Romani
05e1c4b489 e2e: node: fix podresources API feature label
We want to fix and enhance lanes which exercise
the podresources API tests. The first step is to clarify
the label and made it specific to podresources API,
minimzing the clash and the ambiguity with the "PodLevelResources"
feature.

Note we change the label names, but the label name is backward
compatible (filtering for "Feature:PodResources" will still
get the tests). This turns out to be not a problem because
these tests are no longer called out explicitly in the lane
definitions. We want to change this ASAP.

The new name is more specific and allows us to clearly
call out tests for this feature in the lane definitions.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-07-15 14:15:00 +02:00
Kubernetes Prow Robot
ab685237f0 Merge pull request #132391 from sanposhiho/pre-bind-pre-flight
feat: add PreBindPreFlight and implement in in-tree plugins
2025-07-15 04:06:23 -07:00
Patrick Ohly
6e1875fac9 local-up-cluster.sh: don't require to be invoked in the root
It's normal for shell scripts to change the current directory if they expect to
run in the repo root.
2025-07-15 12:54:40 +02:00
Patrick Ohly
356be5ae30 DRA E2E: move upgrade/downgrade test into test/e2e_dra
It's similar to test/e2e_kubeadm in the sense that it is a test which must be
excluded from both "make test" and "make integration" by default.
2025-07-15 12:54:40 +02:00
Patrick Ohly
c8ca9249ac DRA integration: add upgrade/downgrade testing with local-up-cluster.sh
The test brings up the cluster and uses that power to run through
an upgrade/downgrade scenario. Version skew testing (running tests while the cluster
is partially up- or downgraded) could be added.

The new helper code for managing the cluster is written so that it could be
used both in an integration test and an E2E
test. https://github.com/kubernetes/kubernetes/pull/122481 could make that a
bit easier in an E2E test, but is not absolutely required.

In contrast to running on a normal cluster, pods need no privileges.
Instead, the caller has to make sure that the test itself can write
into system directories used by the cluster.
2025-07-15 12:54:40 +02:00
Patrick Ohly
60e9316c0c DRA E2E: refactor helper code
The helper code is useful for a separate Ginkgo suite for upgrade/downgrade
testing. We don't want to import test/e2e/dra there because that would also
define additional tests.
2025-07-15 12:54:40 +02:00
Patrick Ohly
2e3228e2ca DRA E2E: support deploying driver on localhost
If we know that the test binary shares the filesystem with the cluster (for
example, when using local-up-cluster.sh), then we can avoid the whole
complicated portproxy solution and work directly with the paths on the
host.

Only works with suitable permissions! /var/lib/kubelet/plugins,
/var/lib/kubelet/plugin_registry, and /var/run/cdi must be writable.

portproxy remains the default because it automatically gains sufficient
permissions also when combined with local-up-cluster.sh.
2025-07-15 12:52:27 +02:00
Patrick Ohly
e5f57d2cfa ktesting: add WithoutCancel
This closes a gap compared to the context package. It's useful when combined
with Ginkgo to keep something running beyond the end of the Ginkgo BeforeEach
or It node.
2025-07-15 12:52:27 +02:00
Patrick Ohly
e01603b2e3 ktesting: document side effect of SetDefaultVerbosity during init 2025-07-15 12:52:27 +02:00
Patrick Ohly
0b1bed1a1e ktesting: WithCancel does not cancel on test completion anymore
That WithCancel added a deferred cleanup which cancels on test termination was
unexpected. This automatic cancellation makes sense only for the initial root
TContext.
2025-07-15 12:52:27 +02:00
Patrick Ohly
f381d73724 DRA E2E: retry exec of hostpathplugin
We can recover from exec failing, the portproxy code already retries port
forwarding.
2025-07-15 12:52:27 +02:00
Patrick Ohly
c2080e7e45 DRA E2E: support using ktesting
This is a DRA-specific stop-gap solution for using the E2E framework together
with ktesting. Long-term this should better land in the E2E framework itself.
2025-07-15 12:52:27 +02:00
Patrick Ohly
906505281f ktesting: add step Begin/End
This allows declaring a code region as one step without having to use
an anonymous callback function, which has the advantage that variables
set during the step are visible afterwards.

In Python, this would be done as

    with ktesting.Step(tctx) as tcxt:
        // some code code inside step
    // code not in the same step

But Go has no such construct.

In contrast to WithStep, the start and end of the step are logged, including
timing information.
2025-07-15 12:52:27 +02:00
Patrick Ohly
b7c2d6aba5 ktesting: skip logging error when capturing it
Hiding the error in WithError is the right choice for example
when it is used inside ktesting.Eventually. Most callers probably want to deal
with the unexpected error themselves. For those who don't, WithErrorLogging
continues to log it.
2025-07-15 12:52:27 +02:00
Patrick Ohly
4977163860 DRA E2E: reduce port proxy verbosity
During upgrade/downgrade testing, errors are encountered while the apiserver is
down. This is normal and handled via retrying, so we don't need to be verbose.
2025-07-15 12:52:26 +02:00
Patrick Ohly
5721c927e6 DRA E2E: increase verbosity of resource claim controller
Can be done via -vmodule, albeit not precisely because other controllers
also have a controller.go file.
2025-07-15 12:52:26 +02:00
Patrick Ohly
1a284472f1 E2E framework: retry also on EOF errors
EOF occurs after restarting the API server and, despite a retry loop in
client-go/rest/request.go, sometimes is returned to the application.
2025-07-15 12:52:26 +02:00
Patrick Ohly
6a7b9589f6 E2E framework: support setting REST config
A special test (for example, one which manages its own cluster) could almost
construct a Framework instance because most fields are exported. The
`clientConfig` field isn't because REST configs often need to be deep-copied to
avoid accidentally updating some shared copy, so for this special case a
SetClientConfig is needed.
2025-07-15 12:52:26 +02:00
Kubernetes Prow Robot
e3b20c07d6 Merge pull request #132870 from pohly/dra-allocator
DRA: refactor claim allocator
2025-07-15 01:28:29 -07:00