Commit Graph

133713 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
48c56e04e0 Merge pull request #135017 from liggitt/stateful-set-noop-rollout
Fix spurious statefulset rollout from 1.33 → 1.34
2025-11-03 19:58:11 -08:00
Kubernetes Prow Robot
ddec0243ed Merge pull request #135016 from BenTheElder/kubeadm-kind-v1beta4
prepare kind configs for kubeadm v1beta4
2025-11-03 19:58:04 -08:00
Kubernetes Prow Robot
41673c7198 Merge pull request #134910 from tchap/kcm-controllers-thread-mgmt
pkg/controller: Improve goroutine management
2025-11-03 17:58:03 -08:00
Jordan Liggitt
979c442774 Fix spurious workload rollout due to null creationTimestamp in controller revisions 2025-11-03 17:11:06 -05:00
Jordan Liggitt
7d186d870f Remove unused and fragile revision hash comparisons
This was broken since 666a41c2ea when the label value became non-integer encoded
The chance of one controller revision hash label being int-parsable: 7/27 ^ 8 = 0.00002041 = ~0
The chance of both being int-parsable: 0.00002041^2 = ~0

Hash comparison locks in differences in content failing EqualRevision
even when the semantic content is normalized to be equal.
2025-11-03 16:33:40 -05:00
Jordan Liggitt
94e085e15c Add unit test detecting spurious statefulset rollout 2025-11-03 16:33:39 -05:00
Kubernetes Prow Robot
3ec72e2e97 Merge pull request #135070 from pohly/e2e-slow-priority
E2E framework: start slow tests first
2025-11-03 13:24:11 -08:00
Kubernetes Prow Robot
3717c7025e Merge pull request #134793 from LionelJouin/issue-134789
DRA allocator: Add the requests corresponding to the config FromClass
2025-11-03 13:24:04 -08:00
Kubernetes Prow Robot
e86c0171a7 Merge pull request #132644 from stlaz/ensure-secret-images-metrics
kubelet: add metrics for EnsureImageExists
2025-11-03 12:34:05 -08:00
Kubernetes Prow Robot
462c869354 Merge pull request #134326 from sairameshv/global_cache_dra
Add global cache to map between the deviceclass and the extended resource
2025-11-03 10:40:06 -08:00
Kubernetes Prow Robot
4e8499740e Merge pull request #134985 from swatisehgal/node-cm-ctx-logging-migration
node: cm: migrate container manager to contextual logging
2025-11-03 09:34:12 -08:00
Kubernetes Prow Robot
da2eea1bf2 Merge pull request #134263 from ardaguclu/autoscale-dryrun-client
Add given namespace in dryrun=client output of HPA
2025-11-03 09:34:05 -08:00
Patrick Ohly
f9ef004916 E2E framework: start slow tests first
This avoids the risk of having a slow test started towards the end of a run,
which then would cause the run to take longer. When started early they can run
in parallel to other tests. In serial runs it doesn't matter.

The implementation maps the Slow label to the new ginkgo.SpecPriority. The
default is 0. Tests with priority 1 run first.
2025-11-03 18:17:59 +01:00
Kubernetes Prow Robot
67c3cb2228 Merge pull request #135056 from pohly/dra-pool-less-checking
DRA: fix "all" allocation with incomplete pools differently
2025-11-03 08:34:22 -08:00
Kubernetes Prow Robot
2649843ed0 Merge pull request #134951 from enj/enj/i/fix_kas_opt_owners
sig-auth: fix KAS options OWNERS
2025-11-03 08:34:14 -08:00
Kubernetes Prow Robot
3f1255dd5f Merge pull request #134913 from scaliby/remove-deprecated-es-api
Drop support for discoveryv1beta1.EndpointSlice in kubectl
2025-11-03 08:34:06 -08:00
Kubernetes Prow Robot
4f3a08592b Merge pull request #135057 from pohly/dra-e2e-conformance-candidates-removal
DRA E2E: stop labeling tests as ConformanceCandidate
2025-11-03 07:44:39 -08:00
Kubernetes Prow Robot
20bec178d2 Merge pull request #135038 from hoskeri/limit-proxy-bytes
Limit CONNECT proxy response header size
2025-11-03 07:44:32 -08:00
Kubernetes Prow Robot
b5c62b1b10 Merge pull request #134964 from sunya-ch/add-drop-devicebinding-fields
[DRA] Add dropDeviceBindingConditionsFields and fix immutable field on DeviceBindingConditions strategy test
2025-11-03 07:44:23 -08:00
Kubernetes Prow Robot
ec0f275e90 Merge pull request #134934 from siyuanfoundation/client-fg
change client go default features to versioned
2025-11-03 07:44:15 -08:00
Kubernetes Prow Robot
81877b94a6 Merge pull request #134914 from lalitc375/stability-levels1
Graduate a few soaked alpha tags to beta
2025-11-03 07:44:07 -08:00
Arda Güçlü
c13c581459 Add given namespace in dryrun=client output of HPA 2025-11-03 18:35:45 +03:00
yliao
3eab698884 fixed unit test and integration test failures
Fix minor nits

Signed-off-by: Sai Ramesh Vanka <svanka@redhat.com>
2025-11-03 20:07:01 +05:30
Kubernetes Prow Robot
4b5369008a Merge pull request #135054 from bart0sh/PR205-DRA-extended-resources-e2e-revert-WithFlaky
DRA: revert "added WithFlaky() to the device plugin test case: supports extended resources together with ResourceClaim"
2025-11-03 06:02:28 -08:00
Kubernetes Prow Robot
0c0b513b87 Merge pull request #135053 from soltysh/kubectl_cleanup
Kubectl code cleanup
2025-11-03 06:02:21 -08:00
Kubernetes Prow Robot
4e5220939e Merge pull request #134927 from macsko/dont_delete_pods_with_deletiontimestamp
Don't preempt pods with DeletionTimestamp set
2025-11-03 06:02:14 -08:00
Kubernetes Prow Robot
98c63c0dbc Merge pull request #134920 from p0lyn0mial/upstream-watchlist-unsupported-wl-semantics-dr-client
dynamic-resource-allocation/client: expose IsWatchListSemanticsUnSupported
2025-11-03 06:02:07 -08:00
Patrick Ohly
6dd086536f DRA E2E: stop labeling tests as ConformanceCandidate
There's no plan anymore to promote these tests. They would have to be rewritten
to satisfy conformance test requirements (for example, self-contained and easy
to review) which doesn't seem worthwhile.
2025-11-03 14:02:34 +01:00
Kubernetes Prow Robot
b9bbdfa32f Merge pull request #132658 from tkashem/dra-plugin-timeout
kubelet: add a unit test that verifies that the dra plugin enforces timeout
2025-11-03 04:44:05 -08:00
Patrick Ohly
5e0d06082d DRA allocator: partial support transition between nodes, fix "is incomplete"
The main reason for the change is to fix the detection of incomplete pools.  On
contrast to the previous attempt to fix this, now additional work only gets
done when the current pool is not already known to be complete. In other words,
most of the time no additional work is needed.

When doing the additional checking, then some cases of "updated devices no
longer available for now" can be detected. This is not a full solution, but
because DRA drivers doing this will have problems with race conditions anyway,
this is not something that needs to be supported better. DRA drivers simply
shouldn't be doing this.

This adds back the test case from the original fix and a few more.
2025-11-03 13:18:38 +01:00
Patrick Ohly
a0e500ace3 Revert "DRA: Allow AllocationMode: All from multi-node resource pools"
This reverts commit 2e534d6da1.
It caused a performance regression, a different fix is needed.
2025-11-03 13:10:43 +01:00
Kubernetes Prow Robot
1c875ca501 Merge pull request #135052 from p0lyn0mial/upstream-watchlist-unsupported-wl-fix-test-gc-test
pkg/controller/garbagecollector/garbagecollector_test: wrap kubeClient with a client that doesn't support WatchList semantics.
2025-11-03 03:13:36 -08:00
Ed Bartosh
30de423597 Revert "added WithFlaky() to the device plugin test case: supports extended resources together with ResourceClaim"
This reverts commit edfa9a5bd2
as https://github.com/kubernetes/kubernetes/issues/133488 has been resolved.
2025-11-03 12:50:21 +02:00
Maciej Szulik
d3c2115441 Clean NewDefaultKubectlCommandWithArgs for readability
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-11-03 11:31:23 +01:00
Maciej Szulik
ac9120f607 Move PluginHandler to separate file
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-11-03 11:30:03 +01:00
Lukasz Szaszkiewicz
c832203707 pkg/controller/garbagecollector/garbagecollector_test: wrap kubeClient with a client that doesn't support WatchList semantics. 2025-11-03 10:41:49 +01:00
Kubernetes Prow Robot
5e2ad84f67 Merge pull request #134906 from carlory/fix-kubeadm-3229
kubeadm: added container runtime version check to preflight
2025-11-02 23:36:04 -08:00
Patrick Ohly
12a0c8ce17 DRA extended resource: chain event handlers
The cache and scheduler event handlers cannot be registered separately in the
informer, that leads to a race (scheduler might schedule based on event before
cache is updated). Chaining event handlers (cache first, then scheduler) avoids
this.

This also ensures that the cache is up-to-date before the scheduler
starts (HasSynced of the handler registration for the cache is checked).

Other changes:
- renamed package to avoid clash with other "cache" packages
- clarified nil handling
- feature gate check before instantiating the cache
- per-test logging
- utilruntime.HandleErrorWithLogger
- simpler cache.DeletedFinalStateUnknown

Signed-off-by: Sai Ramesh Vanka <svanka@redhat.com>
2025-11-03 12:31:17 +05:30
Sai Ramesh Vanka
d8c66ffb63 Add a global cache to support DRA's extended resource to the device
class mapping

- Add a new interface "DeviceClassResolver" in the scheduler framework
- Add a global cache of mapping between the extended resource and the
  device class
- Cache can be leveraged by the k8s api-server, controller-manager along with the scheduler
- This change helps in delegating the requests to the dynamicresource
  plugin based on the mapping during the node update events and thus
avoiding an extra scheduling cycle

Signed-off-by: Sai Ramesh Vanka <svanka@redhat.com>
2025-11-03 12:31:16 +05:30
Kubernetes Prow Robot
6822f9b0af Merge pull request #135045 from pohly/e2e-slow-priority-revert
Revert "E2E framework: start slow tests first"
2025-11-02 12:04:02 -08:00
Patrick Ohly
34021d451d Revert "E2E framework: start slow tests first"
This reverts commit cff07e7551.

The commit caused several kubeadm jobs to fail while executing all conformance
tests (including slow ones) in parallel. Sometimes execution took longer and
ran into the overall timeout, sometimes there was:

    [FAILED] Expected
        <int>: 440
    to be ==
        <int>: 400
    In [It] at: k8s.io/kubernetes/test/e2e/apimachinery/chunking.go:202

It looks like the tests are flaky and/or reveal a real bug when slow tests run
all in parallel at the same time.

This should work, but doesn't right now, so let's revert until that problem is fixed.
2025-11-02 20:09:28 +01:00
Abhijit Hoskeri
7c47b91ed2 Limit CONNECT proxy response header size
As described in https://go.dev/issue/74633 a misbehaving proxy server
can cause memory exhaustion in the client. The fix in https://go.dev/cl/698915
only covers http.Transport users. Apply the same limit here.

Limit the size of the response headers the proxy server can send us.
2025-11-01 20:47:40 -07:00
Kubernetes Prow Robot
afb2b97425 Merge pull request #135022 from sunya-ch/fix-distinct-constraint
[DRA] Fix DistinctAttributeConstraint match comparision with value
2025-11-01 09:24:02 -07:00
Kubernetes Prow Robot
cd0ddec139 Merge pull request #134881 from pohly/e2e-slow-priority
E2E: run slow tests first, using new Ginkgo
2025-11-01 06:10:02 -07:00
Patrick Ohly
cff07e7551 E2E framework: start slow tests first
This avoids the risk of having a slow test started towards the end of a run,
which then would cause the run to take longer. When started early they can run
in parallel to other tests. In serial runs it doesn't matter.

The implementation maps the Slow label to the new ginkgo.SpecPriority. The
default is 0. Tests with priority 1 run first.
2025-11-01 09:52:09 +01:00
Patrick Ohly
6034321603 dependencies: ginkgo v2.27.2, gomega v1.38.2
Specifically the new AddTreeConstructionNodeArgsTransformer and SpecPriority in
Ginkgo will be useful.

Gomega gets updated to keep up-to-date.
2025-11-01 09:52:09 +01:00
Sunyanan Choochotkaew
c99145805f [DRA] Fix DistinctAttributeConstraint match comparision with value
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com>
2025-11-01 08:43:57 +09:00
Kubernetes Prow Robot
d2e1e3b6bc Merge pull request #135021 from aramase/aramase/c/cleanup_jwks_metric_comment
oidc: fix jwks metric name in comment
2025-10-31 15:34:05 -07:00
Anish Ramasekar
97587e951b oidc: fix jwks metric name in comment
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-10-31 14:28:14 -07:00
Benjamin Elder
2b0bfbfb8e removed unused functionality from run_group_snapshot.sh and prepare for kubeadm v1beta4 config 2025-10-31 14:19:43 -07:00