Commit Graph

15670 Commits

Author SHA1 Message Date
Patrick Ohly
1057407cee DRA e2e: more flexible socket listening
Instead of hard-coding two instances of the hostpathplugin which listen on
certain socket paths, the hostpathplugin now gets started through Pod exec as
needed. The advantage is that the helper code is in charge of socket naming,
just like it would be in real deployment.

One nuisance is that exec.StreamWithContext always complains in copyFromStdout
and copyFromStderr when the remote hostpathplugin gets killed via context
cancellation:

    E0312 11:56:31.637669  289446 v2.go:167] "Unhandled Error" err="next reader: read tcp [::1]:59006->[::1]:6444: use of closed network connection" logger="UnhandledError"
    E0312 11:56:31.637749  289446 v2.go:150] "Unhandled Error" err="next reader: read tcp [::1]:59006->[::1]:6444: use of closed network connection" logger="UnhandledError"

These can be ignored.
2025-03-14 16:46:15 +01:00
Patrick Ohly
ec12727957 DRA kubeletplugin: revise socket path handling
When supporting rolling updates, we cannot use the same fixed socket paths for
old and new pod. With the revised API, the caller no longer specifies the full
socket paths, only directories. The logic about how to name sockets then can be
in the helper.

While at it, avoid passing a context to the gRPC helper code when
all that the helper code needs is a logger. That leads to confusion
about whether cancellation has an effect.
2025-03-14 14:19:56 +01:00
Patrick Ohly
c6252daccb DRA kubeletplugin: turn helper into wrapper
The goal is to simplify writing DRA drivers. This is also a first step towards
supporting seamless upgrades.

DRA drivers no longer need to implement the kubelet plugin API
directly. Instead, the helper wraps an implementation of an interface. The
helper then provides common functionality:

- retrieve and validate ResourceClaims
- serialize gRPC calls (enabled by default, can be opted out)
- gRPC logging

The definition of that interface is meant to be comprehensive enough that a
correct DRA driver can be implemented by following the documentation of the
package, without having to cross-reference KEPs.

The DRAPlugin interface used to be the abstract API of the helper. Now it's
what the DRA driver kubelet plugin needs to implement. The helper is a concrete
Server struct with no exported fields. It only exports the methods that
drivers need when using the helper.

While at it, support for the v1alpha4 API gets removed from the helper, which
implies removing the corresponding E2E tests. The kubelet implementation will
be dropped separately.
2025-03-14 14:17:05 +01:00
Kubernetes Prow Robot
e0ab1a16ad Merge pull request #128372 from aramase/aramase/f/kep_4412_alpha_impl
KSA token for Kubelet image credential providers alpha
2025-03-12 00:39:50 -07:00
Anish Ramasekar
2090a01e0a add e2e test with the gcp-credential-provider test plugin
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-03-11 20:36:36 -07:00
Kubernetes Prow Robot
4a0566c25b Merge pull request #130575 from Jefftree/cle-e2e
Add E2E tests for CLE
2025-03-11 19:47:45 -07:00
Jefftree
9eef88c844 Add CLE e2e tests 2025-03-11 20:54:45 +00:00
Kubernetes Prow Robot
309c4c17fb Merge pull request #128499 from stlaz/ctb_betav1
ClusterTrustBundles - move to beta
2025-03-11 12:47:45 -07:00
Stanislav Láznička
e0f536bf1f use the ClusterTrustBundles beta API 2025-03-11 18:07:24 +01:00
Kubernetes Prow Robot
07d66d9c26 Merge pull request #130574 from natasha41575/drop_proposed_resize_status
[FG:InPlacePodVerticalScaling] Drop `Proposed` resize status
2025-03-11 09:49:46 -07:00
Natasha Sarkar
8a20e90839 [FG:InPlacePodVerticalScaling] Drop 'Proposed' resize status 2025-03-10 20:46:02 +00:00
Kubernetes Prow Robot
cad46631a8 Merge pull request #130655 from BenTheElder/pr130580
Set [Feature:OffByDefault] when WithFeatureGate receives an off-by-default feature gate
2025-03-10 13:31:46 -07:00
Jordan Liggitt
628d107b61 Switch cluster trust bundle e2e tests to generic alpha feature + feature gates
This relies on WithFeatureGate adding [Feature:OffByDefault]. Without that, the
test would start to run in jobs which don't enable the feature.
2025-03-10 12:04:04 -07:00
Benjamin Elder
9828ad64da e2e framework WithFeatureGate adds [Feature:OffByDefault]
(when passed a feature that is not Default)

This allows using the regex filter to skip tests that do not work on a cluster
without optional configuration, while moving tests to use WithFeatureGate
without also setting WithFeature unless they have some additional configuration
required.

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2025-03-10 12:04:04 -07:00
Kubernetes Prow Robot
133d5d612e Merge pull request #130603 from AndrewSirenko/fix-vac-flake
Mark VAC recovery e2e test flaky
2025-03-10 10:27:46 -07:00
Kubernetes Prow Robot
5227bad0df Merge pull request #130335 from carlory/fix-handle-terminating-pvc-when-kubelet-rebuild-dsw
Fix kubelet restart unmounts volumes of running pods if the referenced PVC is being deleted by the user
2025-03-10 03:09:47 -07:00
carlory
aab083972d fix handle terminating pvc when kubelet rebuild dsw
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-03-10 15:39:18 +08:00
Drew Sirenko
085d23388a Mark VAC roll-forward test as flaky 2025-03-10 00:40:53 -04:00
Tim Hockin
f08e640b9e Lock down gofuzz in deps 2025-03-08 15:22:01 -08:00
Kubernetes Prow Robot
2effa5e3cf Merge pull request #130352 from natasha41575/kubelet-pod-observedgen
[FG:PodObservedGenerationTracking] Kubelet sets pod `status.observedGeneration` when updating the pod status
2025-03-07 13:33:45 -08:00
Kubernetes Prow Robot
cf07a65c43 Merge pull request #130612 from carlory/fix-sleep-infinity-on-windows
Fix non-portable use of "sleep infinity"
2025-03-07 04:15:52 -08:00
carlory
0a32e7d6e7 make sure that container is running when execute kubelet exec command
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-03-07 14:42:21 +08:00
Kubernetes Prow Robot
9d45ea8b9d Merge pull request #128586 from mortent/DRAPrioritizedList
Prioritized Alternatives in Device Requests
2025-03-06 21:01:44 -08:00
Natasha Sarkar
40e7d88f02 Kubelet sets pod.status.observedGeneration behind FG 2025-03-06 22:31:04 +00:00
Kubernetes Prow Robot
3a812ec464 Merge pull request #130617 from cici37/updateFG
Update status before returning err
2025-03-06 14:10:01 -08:00
Natasha Sarkar
eab9197d1a Add observedGeneration and validation to pod status and conditions 2025-03-06 20:08:06 +00:00
Cici Huang
6645022d8b Update status before returning err 2025-03-06 10:54:45 -08:00
carlory
627bfbdfdf windows does not support sleep infinity 2025-03-06 15:13:12 +08:00
Benjamin Elder
0e7e025c59 use kube-cross to build kms plugin 2025-03-05 15:42:04 -08:00
Benjamin Elder
4d7f6eadf1 kms-e2e: use setup_env / respect GOTOOLCHAIN 2025-03-05 15:28:40 -08:00
Kubernetes Prow Robot
cd451c6a36 Merge pull request #130282 from natasha41575/podresizevalidation
Clean up preparation for pod subresource updates
2025-03-05 14:41:45 -08:00
Kubernetes Prow Robot
98e8539b74 Merge pull request #130090 from carlory/sig-storage-testing
nominate myself as an approver for storage e2e tests
2025-03-04 12:25:44 -08:00
Kubernetes Prow Robot
4f3fd12bc1 Merge pull request #130116 from AkihiroSuda/rro
KEP-3857: Recursive Read-only (RRO) mounts: promote to GA
2025-03-03 19:55:49 -08:00
Kubernetes Prow Robot
b9343dd366 Merge pull request #130477 from cici37/mapTest
Add e2e test for MutatingAdmissionPolicy.
2025-03-03 18:47:42 -08:00
Kubernetes Prow Robot
df030f3851 Merge pull request #130472 from jsafrane/selinux-controller-ignore-recursive
selinux: Ignore pods with Recursive policy
2025-03-03 14:29:56 -08:00
Kubernetes Prow Robot
ba71449103 Merge pull request #130329 from zylxjtu/bootid
Fix the node reboot validation failure
2025-03-03 14:29:42 -08:00
Cici Huang
ea3fa1c519 Add e2e test for MutatingAdmissionPolicy. 2025-03-03 09:21:01 -08:00
Kubernetes Prow Robot
940e6bd357 Merge pull request #130526 from aojea/e2e_netpol_finalizers
e2e network policies test support network policies with finalizers
2025-03-03 06:51:49 -08:00
Kubernetes Prow Robot
b3095a49f5 Merge pull request #130519 from dims/reduce-the-number-of-versions-of-images-we-pull-in-our-e2e-tests
Reduce number of (versions of!) images we pull in our e2e tests
2025-03-03 06:51:41 -08:00
Kubernetes Prow Robot
c7d8f731b0 Merge pull request #130524 from dims/wrong-matcher-use-BeNil-instead-of-BeEmpty
Wrong matcher - use BeNil instead BeEmpty
2025-03-03 00:59:04 -08:00
Antonio Ojea
09427ab558 Update test/e2e/network/netpol/network_policy_api.go
Co-authored-by: Adrian Moisey <adrian@changeover.za.net>
2025-03-03 08:48:06 +01:00
Kubernetes Prow Robot
5d28e86245 Merge pull request #130097 from bitoku/podrejectionstatus
Modify how to check the status in PodRejectionStatus test
2025-03-02 18:52:57 -08:00
Antonio Ojea
f8b080a4be Update test/e2e/network/netpol/network_policy_api.go
Co-authored-by: Adrian Moisey <adrian@changeover.za.net>
2025-03-02 18:57:33 +01:00
Antonio Ojea
2f6f8d083e Update test/e2e/network/netpol/network_policy_api.go
Co-authored-by: Adrian Moisey <adrian@changeover.za.net>
2025-03-02 18:57:26 +01:00
Antonio Ojea
e5ad4a1878 e2e network policies test support network policies with finalizers 2025-03-02 13:11:22 +00:00
Davanum Srinivas
da987eb762 Wrong matcher - use BeNil instead BeEmpty
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-02 07:08:24 -05:00
Davanum Srinivas
1e64a89038 Reduce number of (versions of!) images we pull in our e2e tests
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-03-01 21:02:50 -05:00
Kubernetes Prow Robot
eddb6a7303 Merge pull request #130476 from dims/do-not-look-for-ssh-external-ip-for-NFSPersistentVolumes-tests
Do not look for SSH external IP for NFSPersistentVolumes tests
2025-02-28 18:21:02 -08:00
Kubernetes Prow Robot
d04883c90c Merge pull request #130061 from mimowo/make-backoffperindex-stable
Graduate Backoff Limit Per Index as stable
2025-02-28 13:37:02 -08:00
zylxjtu
3d318b57e3 revert the old loop to check if the node is rebooted 2025-02-28 19:39:21 +00:00