Commit Graph

136243 Commits

Author SHA1 Message Date
Paco Xu
ec58d1865d kubectl: only print default cotnainer if there are multi containers 2026-03-10 13:29:22 +08:00
Kubernetes Prow Robot
a142b22c38 Merge pull request #136965 from yuanwang04/restart-pod-tests
Move E2E tests for RestartAllContainers
2026-03-10 08:53:11 +05:30
Antoni Zawodny
3f094dc228 Create Workload API v1alpha2 (#136976)
* Drop WorkloadRef field and introduce SchedulingGroup field in Pod API

* Introduce v1alpha2 Workload and PodGroup APIs, drop v1alpha1 Workload API

Co-authored-by: yongruilin <yongrlin@outlook.com>

* Run hack/update-codegen.sh

* Adjust kube-scheduler code and integration tests to v1alpha2 API

* Drop v1alpha1 scheduling API group and run make update

---------

Co-authored-by: yongruilin <yongrlin@outlook.com>
2026-03-10 07:59:10 +05:30
Kubernetes Prow Robot
1c91b2969f Merge pull request #136964 from yuanwang04/restart-pod-last-term-status
Fix LastTerminationStatus for RestartAllContainers
2026-03-10 06:59:17 +05:30
Kubernetes Prow Robot
a01d2e6cd4 Merge pull request #132922 from yt2985/client-fix
Fix the client-go issue of reloading trust root CAs.
2026-03-10 06:59:10 +05:30
Kubernetes Prow Robot
1a3cc8be4d Merge pull request #137552 from kannon92/issue-137539
move extended resources to dra feature lane
2026-03-10 05:17:16 +05:30
Kubernetes Prow Robot
dbaf71515c Merge pull request #137521 from BenTheElder/document-kind-feature
document "Kind" e2e feature
2026-03-10 05:17:09 +05:30
Yuan Wang
f33a2767aa Refactor container restart policy tests to e2e/common/node
- Added validation for lastTerminationStatus
2026-03-09 23:05:05 +00:00
Kubernetes Prow Robot
e7f635506d Merge pull request #136763 from richabanker/nh-alpha
Enable native histograms gated by feature flag in apiserver
2026-03-10 04:11:09 +05:30
Yuan Wang
cf33d3ace3 Fix LastTerminationStatus for RestartAllContainers 2026-03-09 21:47:45 +00:00
Kubernetes Prow Robot
0fbb89c81c Merge pull request #137535 from danwinship/nodeip-e2e-cleanups
e2e cleanups related to node IPs
2026-03-10 02:59:19 +05:30
Kubernetes Prow Robot
7bec24fbb3 Merge pull request #137475 from troychiu/flaky-test-extended-resource-name-no-resource
Fix scheduler flaky test: wait for DeviceClass cache sync in dynamicresources tests
2026-03-10 02:59:11 +05:30
Kubernetes Prow Robot
5ceb6df291 Merge pull request #137574 from SergeyKanzhelev/revertImageID
revert adding PullImageResponse.image_id to CRI API
2026-03-10 01:19:20 +05:30
Kubernetes Prow Robot
3d6026d2fd Merge pull request #136178 from omerap12/promote-hpa-metrics
promote HPA metrics to beta
2026-03-10 01:19:13 +05:30
Troy Chiu
1d2165b29c Fix scheduler flaky test: wait for DeviceClass cache sync in dynamicresources tests
When DRAExtendedResource is enabled, the dynamicresources test setup
registers an event handler for DeviceClasses but was not waiting for it
to sync. This can lead to flaky tests where the cache is not fully
populated when the test starts.

This change captures the event handler registration and includes its
DoneChecker in a WaitFor call.
2026-03-09 19:24:13 +00:00
Kevin Hannon
c7ca6b9cfe Add KubeletMinVersion:1.36 label to DRA extended resource tests
This prevents the DRA extended resource tests from running against
kubelets older than 1.36 in n-x version skew jobs, avoiding failures
when deploying device plugins on downgraded kubelets.
2026-03-09 14:29:31 -04:00
Kubernetes Prow Robot
7495d96adf Merge pull request #136924 from troychiu/PriorityListStable
Promote DRAPrioritizedList to GA
2026-03-09 23:55:29 +05:30
Kubernetes Prow Robot
413d481282 Merge pull request #136655 from bitoku/partitionable-devices
Add partitionable devices upgrade/downgrade test.
2026-03-09 23:55:21 +05:30
Adam Dyess
83d42f46b4 issue: setcap build image shouldn't require a shell (#136633)
* issue: setcap build image shouldn't require a shell

* Apply review comment to rename intermediate binary

* Use plain `exec` rather than path to setcap executable.
2026-03-09 23:55:13 +05:30
Kubernetes Prow Robot
147a9ee315 Merge pull request #137231 from danwinship/lifecycle-hook-e2e
Rework container lifecycle tests to not require "privileged" pod security
2026-03-09 23:05:15 +05:30
Sergey Kanzhelev
9f73dfcc5f revert adding PullImageResponse.image_id to CRI API 2026-03-09 17:10:10 +00:00
Kubernetes Prow Robot
4a300f8e6d Merge pull request #137561 from bart0sh/PR225-DRA-fix-ExtendedResource-upgrade-downgrade-flakes
test/e2e_dra: retry pod check during upgrade/downgrade
2026-03-09 21:57:15 +05:30
Nikhil
e026a9482a Remove deprecated PodRequestsAndLimits from kubectl/pkg/util/resource (#137442)
* Remove deprecated PodRequestsAndLimits from kubectl/pkg/util/resource

The PodRequestsAndLimits function was deprecated in favor of
k8s.io/component-helpers/resource.PodRequests and PodLimits,
which also support pod-level resources. There are no remaining
consumers in kubectl.

This removal includes the unexported helpers: podRequests,
podLimits, determineContainerReqs, max, addResourceList, and
maxResourceList.

* Remove test for deleted max helper function
2026-03-09 19:53:31 +05:30
Kubernetes Prow Robot
63d25f42db Merge pull request #136945 from ardaguclu/fix-kubectl-scale
Reflect expected replica count to the output of kubectl scale
2026-03-09 19:53:22 +05:30
Kubernetes Prow Robot
4c162fe1f7 Merge pull request #136602 from guptaNswati/e2e-kep3695-podresources-test
add additional Get() tests for GA
2026-03-09 19:53:13 +05:30
Ayato Tokubi
d1ca3c6ec9 Add partitionable devices upgrade/downgrade test. 2026-03-09 14:09:36 +00:00
Kubernetes Prow Robot
889a2bb795 Merge pull request #137537 from Mujib-Ahasan/add-suggestfor
kubectl: improve command suggestions for describe and get
2026-03-09 18:57:14 +05:30
Ed Bartosh
aa731ab5c0 test/e2e_dra: retry pod check during upgrade/downgrade
During cluster upgrade and downgrade, nodes are temporarily restarted.
A pod can be reported as Running by the API server while the kubelet's
container runtime is still initializing, causing transient exec failures:

  Internal error occurred: unable to upgrade connection: pod does not exist

Wrapped b.TestPod in tCtx.Eventually so that assertion failures are treated
as temporary and retried.
2026-03-09 11:40:39 +02:00
Kubernetes Prow Robot
d0bd636b3e Merge pull request #137531 from atombrella/feature/test_rangeint
Lint: Use modernize/rangeint in `test/{e2e,e2e_node,images,soak}`
2026-03-09 14:01:18 +05:30
Kubernetes Prow Robot
090693bd79 Merge pull request #137497 from atombrella/feature/modernize_activate_forvar
Lint: Activate modernize/forvar rule in golangci-lint.
2026-03-09 14:01:11 +05:30
Kubernetes Prow Robot
bc9a038c98 Merge pull request #137494 from fuweid/fix-reset-issue
cmd/kubeadm: ignore EINVAL error during unmount
2026-03-09 08:09:58 +05:30
Kubernetes Prow Robot
1cdc42e3aa Merge pull request #136845 from darshansreenivas/external-snapshotter-e2e-tests
adding stress tests to volume Group Snapshotter
2026-03-09 06:51:58 +05:30
Darshan Murthy
0dd7cb2e3b adding stress tests to volume Group Snapshotter 2026-03-08 11:25:23 -07:00
Kevin Hannon
52fcf994ca move extended resources to dra feature lane 2026-03-08 14:20:17 -04:00
Mujib Ahasan
3cd3f37861 kubectl: add additional command suggestFor for describe and get
Signed-off-by: Mujib Ahasan <ahasanmujib8@gmail.com>
2026-03-08 02:49:37 +05:30
Dan Winship
6ebabf3198 Fix the semantics of e2essh.NodeSSHHosts on error
If it failed to find an IP for every node, it returned a partial list
along with an error. However, (a) this should never happen since every
scheduleable node should have at least one usable IP, and (b) it
didn't matter since all of its callers just treat any error as being
fatal anyway. So just remove the special case.
2026-03-07 10:52:48 -05:00
Dan Winship
0ffb815750 Drop e2enode.FirstAddress
which was no longer used anyway
2026-03-07 10:45:07 -05:00
Dan Winship
b68e2ac8a5 Drop e2enode.PickIP(), fix its one caller
This returned a randomly-selected IP from across all nodes, preferring
ExternalIP but falling back to an InternalIP. But it was only called
from one place, which was connecting from inside the cluster and thus
wanted an InternalIP anyway.
2026-03-07 10:45:07 -05:00
Dan Winship
6302e3a94f Inline a Service jig helper into a test
jig.GetEndpointNodesWithIP was only used by one test, and that test
didn't even want the data in the form jig.GetEndpointNodesWithIP
provided it in. So just inline the code and generate the data
correctly the first time, and remove GetEndpointNodesWithIP (along
with GetEndpointNodes, which was already unused).
2026-03-07 10:45:06 -05:00
Mads Jensen
1f2b70a043 Lint: Use modernize/rangeint in test/{e2e,e2e_node,images,soak} 2026-03-07 10:17:31 +01:00
Kubernetes Prow Robot
dfbe79674a Merge pull request #137524 from BenTheElder/test-mac
split linux and portable deviceattribute unit tests
2026-03-07 14:11:58 +05:30
Kubernetes Prow Robot
8782cf135f Merge pull request #136963 from yuanwang04/restart-pod-keep-logs
Keep logs when containers removed by RestartAllContainers
2026-03-07 07:22:18 +05:30
Kubernetes Prow Robot
65c04dac7b Merge pull request #137471 from tallclair/pod-status-redundant-relist
Pod status redundant relist
2026-03-07 05:42:24 +05:30
Kubernetes Prow Robot
e5fd5bb8fd Merge pull request #136966 from yuanwang04/restart-pod-single-container
Fix RestartAllContainer restart quickly with single container
2026-03-07 05:42:17 +05:30
Benjamin Elder
e78f851177 split linux and portable deviceattribute unit tests 2026-03-06 15:40:21 -08:00
tinatingyu
b806a3207b client-go CA rotation 2026-03-06 22:38:56 +00:00
Benjamin Elder
21006ff248 document "Kind" e2e feature 2026-03-06 14:06:27 -08:00
Kubernetes Prow Robot
05c01a2e80 Merge pull request #136499 from danwinship/nftables-hairpin-2
further nftables masquerading improvements
2026-03-07 03:32:17 +05:30
Tim Allclair
c356602cb1 Pass kubecontainer.Pod to runtime.GetPodStatus 2026-03-06 20:48:42 +00:00
Tim Allclair
a68bdab168 Add kuberuntime GetPod (singular), and generalized get{Sandboxes,Container} functions 2026-03-06 20:36:58 +00:00