Commit Graph

129141 Commits

Author SHA1 Message Date
mchtech
381ccf0f4c
Fix empty describedObject in hpa status (#124555)
* fix empty DescribedObject in hpa MetricStatus when object target type is AverageValue

Signed-off-by: mchtech <michu_an@126.com>

* add test

Signed-off-by: mchtech <michu_an@126.com>

---------

Signed-off-by: mchtech <michu_an@126.com>
2025-03-18 09:33:56 -07:00
Mark Sasnal
5625483527 KEP-4540: added e2e tests for strict-cpu-reservation option 2025-03-18 11:52:25 -04:00
Mark Sasnal
269bbac6e8 KEP-4540: moved StrictCPUReservationOption to beta feature gate 2025-03-18 11:52:23 -04:00
Natasha Sarkar
4c2be4bdde kubelet sets observedGeneration in conditions 2025-03-18 15:43:24 +00:00
Patrick Ohly
d95d6ba526 DRA scheduler: fix potential panic during unit test verification
If there was an unexpected status, the code extracting the expected error
message crashed with a panic. Happened once so far, for unknown reasons
because the unexpected status then didn't get logged.
2025-03-18 15:07:51 +01:00
Kubernetes Prow Robot
ded2956c83
Merge pull request #130886 from macsko/fix_race_when_closing_activeq
Fix a race when closing activeQ
2025-03-18 06:32:07 -07:00
Kubernetes Prow Robot
4b848a555f
Merge pull request #130863 from serathius/watchcache-negative-RV-consistent
Extend tests for negative RV with consistent reads
2025-03-18 06:31:57 -07:00
Kubernetes Prow Robot
8312d8e85e
Merge pull request #130560 from stlaz/remote-uid-config-beta
RemoteRequestHeaderUID: bump to beta, enabled by default
2025-03-18 06:31:49 -07:00
Kubernetes Prow Robot
8559194e11
Merge pull request #130878 from yongruilin/compatibility-version-featuregate
feat: Add alpha feature verification to feature gates
2025-03-18 05:25:49 -07:00
Patrick Ohly
582b421393 DRA kubeletplugin: add RollingUpdate
When the new RollingUpdate option is used, the DRA driver gets deployed such
that it uses unique socket paths and uses file locking to serialize gRPC
calls. This enables the kubelet to pick arbitrarily between two concurrently
instances. The handover is seamless (no downtime, no removal of ResourceSlices
by the kubelet).

For file locking, the fileutils package from etcd is used because that was
already a Kubernetes dependency. Unfortunately that package brings in some
additional indirect dependency for DRA drivers (zap, multierr), but those
seem acceptable.
2025-03-18 12:32:35 +01:00
Patrick Ohly
b471c2c11f DRA kubelet: support rolling upgrades
The key difference is that the kubelet must remember all plugin instances
because it could always happen that the new instance dies and leaves only the
old one running.

The endpoints of each instance must be different. Registering a plugin with the
same endpoint as some other instance is not supported and triggers an error,
which should get reported as "not registered" to the plugin. This should only
happen when the kubelet missed some unregistration event and re-registers the
same instance again. The recovery in this case is for the plugin to shut down,
remove its socket, which should get observed by kubelet, and then try again
after a restart.
2025-03-18 12:32:35 +01:00
Patrick Ohly
760903c0de DRA kubelet: give DRA drivers a 30 second grace period for updates
When doing an update of a DaemonSet, first the old pod gets stopped and
then the new one is started. This causes the kubelet to remove all
ResourceSlices directly after removal and forces the new pod to recreate all of
them.

Now the kubelet waits 30 seconds before it deletes ResourceSlices. If a new
driver registers during that period, nothing is done at all. The new driver
finds the existing ResourceSlices and only needs to update them if something
changed.

The downside is that if the driver gets removed permanently, this creates a
delay where pods might still get scheduled to the node although the driver is
not going to run there anymore and thus the pods will be stuck.
2025-03-18 12:32:35 +01:00
Kubernetes Prow Robot
bce5886c97
Merge pull request #130873 from serathius/watchcache-consistency-typo
Panic on failed consistency check and fix typo in logs
2025-03-18 03:49:57 -07:00
Kubernetes Prow Robot
83c5f99f97
Merge pull request #128184 from cupnes/add-storage-capacity-scoring
KEP-4049: Add storage capacity scoring to VolumeBinding plugin
2025-03-18 03:49:49 -07:00
Rodrigo Campos
0524c80786 e2e/node: Remove outdated comment
Userns only supported those volumes in k8s 1.25 and 1.26. Let's remove
the outdated comment.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-03-18 11:44:42 +01:00
Rodrigo Campos
c11077f417 e2e/node: Skip userns tests on windows
While they have the LinuxOnly part, other tests have that and this
e2eskipper line. Let's add it just in case.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-03-18 11:44:09 +01:00
Rodrigo Campos
c348bd10e6 pkg/kubelet/userns: Log userns mapping information
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-03-18 11:29:35 +01:00
Rodrigo Campos
69e270f509 pkg/kubelet: Explain why a user is required to get userns kubelet mappings
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-03-18 11:29:34 +01:00
Rodrigo Campos
c984f0f08a tests/e2e: Add tests for userns kubelet mappings
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-03-18 11:29:34 +01:00
Maciej Skoczeń
1be3f8961b Fix a race when closing activeQ 2025-03-18 10:25:56 +00:00
Kubernetes Prow Robot
fd34707033
Merge pull request #130866 from serathius/watchcache-delegate-helper
Extract delegator.Helper interface to allow making delegate decision based on cache state
2025-03-18 02:41:49 -07:00
Maciej Skoczeń
0effe15543 Move scheduler_perf topology spreading tests to a separate package 2025-03-18 09:37:47 +00:00
Stanislav Láznička
b3890d9fa0
bump RemoteRequestHeaderUID featuregate to Beta, on by default 2025-03-18 10:22:17 +01:00
ndixita
091b450057 Replace PodResourceAllocation with PodResourceInfoMap type for
extensibility for pod-level resources support
2025-03-18 05:50:38 +00:00
Kubernetes Prow Robot
6396fa0f77
Merge pull request #130860 from carlory/remove-storage-feature-labels
e2e tests: remove unneeded storage feature label
2025-03-17 20:27:56 -07:00
Kubernetes Prow Robot
16ef87e1b8
Merge pull request #128622 from jpbetz/admission-policy-generalize-api-docs
Clean up API docs shared by ValidatingAdmissionPolicy and MutatingAdmissionPolicy
2025-03-17 20:27:48 -07:00
Kubernetes Prow Robot
c608791a11
Merge pull request #130875 from aramase/aramase/f/fix_email_verified_godoc
Fix godoc for `claims.email_verified` usage in claim validation rules
2025-03-17 19:17:55 -07:00
Kubernetes Prow Robot
2499a2c0a0
Merge pull request #129954 from iholder101/swap/capacity-on-node-sys-info
[KEP-2400] Report swap capacity as part of node.status.nodeSystemInfo
2025-03-17 19:17:48 -07:00
Kubernetes Prow Robot
5639e1fd08
Merge pull request #130870 from Rajalakshmi-Girish/kube-build-image-tag
Fix KUBE_BUILD_IMAGE_CROSS_TAG mismatch when KUBE_CROSS_VERSION is passed
2025-03-17 17:45:56 -07:00
Kubernetes Prow Robot
aba6aa4d7a
Merge pull request #130867 from vinayakankugoyal/gitRepo
Fix failing git_repo e2e release informing tests.
2025-03-17 17:45:48 -07:00
Anish Ramasekar
349e079abe
Update release notes in changelog-1.30 to fix example claim validation rule
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-03-17 17:05:48 -07:00
Anish Ramasekar
af291a44c3
Add unit test to validate email_verified in claim validation rules
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-03-17 17:04:57 -07:00
yongruilin
5d0caaa1a6 feat: Add alpha feature verification to feature gates
Implement a new function, verifyAlphaFeatures, to ensure that alpha features cannot be enabled by default. Update the verifyOrUpdateFeatureList function to call this new verification. Add corresponding unit tests to validate the behavior of alpha feature handling.
2025-03-18 00:04:16 +00:00
Anish Ramasekar
916c7867f7
fix godoc for email_verified requirement when username contains claims.email
Using 'claims.?email_verified.orValue(true) == true' in the example
validation rule. By explicitly comparing the value to true, we let type-checking see the result
will be a boolean, and to make sure a non-boolean email_verified claim will be caught at runtime.

Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-03-17 17:01:47 -07:00
Kubernetes Prow Robot
473ec01548
Merge pull request #130733 from natasha41575/pod-resize-conditions
[FG:InPlacePodVerticalScaling] Move pod resize status to pod conditions
2025-03-17 16:09:50 -07:00
Natasha Sarkar
a15520fbea Move pod resize status to pod conditions 2025-03-17 22:01:05 +00:00
Dawei Wei
6186303580 Adding Unit tests for windows-dsr and overlay support 2025-03-17 14:36:39 -07:00
Kubernetes Prow Robot
e950e517ed
Merge pull request #130862 from icylord/kubectl
kubectl: Remove duplicate selector calculation logic and add missing test cases for the 'describe DaemonSet'
2025-03-17 13:35:49 -07:00
Marek Siarkowicz
984b475e74 Extract delegator.Helper interface to allow making delegate decision based on cache state 2025-03-17 20:57:19 +01:00
Marek Siarkowicz
4f1912abf2 Fix missing recursive in consistency check, enable panic on failed check and fix typo in logs 2025-03-17 20:53:57 +01:00
Kubernetes Prow Robot
917a556981
Merge pull request #130250 from marosset/withdraw-windows-hostnetwork
Withdraw alpha support for HostNetwork containers on Windows
2025-03-17 11:59:48 -07:00
Rajalakshmi-Girish
5402baf4a2 Fix KUBE_BUILD_IMAGE_CROSS_TAG mismatch when KUBE_CROSS_VERSION is passed 2025-03-17 11:20:07 -07:00
Kubernetes Prow Robot
f8cc9c92d6
Merge pull request #130858 from dims/trying-to-fix-provider-kubelet_config_dir_test
Fix kubelet_config_dir_test after KubeletServiceAccountTokenForCredentialProviders was added
2025-03-17 10:43:49 -07:00
Mark Rossett
9837a61528
update cri-api comments for Windows HostProcess withdrawal 2025-03-17 09:40:13 -07:00
Mark Rossett
a666451e8a
withdraw Windows HostNetwork support 2025-03-17 09:40:12 -07:00
Kubernetes Prow Robot
2cb9e77fde
Merge pull request #130658 from tenzen-y/promote-successpolicy-e2e-to-conformance
KEP-3998: Promote JobSuccessPolicy E2E to Conformance
2025-03-17 09:35:56 -07:00
Kubernetes Prow Robot
61529d54f2
Merge pull request #130595 from tkashem/omit-admission
KEP-3926: skip admission validation for unsafe delete
2025-03-17 09:35:49 -07:00
Vinayak Goyal
2b504a7089 Fix failing git_repo e2e release informing tests. 2025-03-17 16:07:50 +00:00
Kubernetes Prow Robot
d367e0b326
Merge pull request #130865 from serathius/integration-refactor
Split subfunction to allow adding more subtests
2025-03-17 08:18:27 -07:00
Kubernetes Prow Robot
eec06b4169
Merge pull request #130864 from xigang/factor-out-index-helper
controller: factor out pod node name indexer helper function
2025-03-17 08:18:18 -07:00