Commit Graph

14971 Commits

Author SHA1 Message Date
Patrick Ohly
bde9b64cdf DRA: remove "source" indirection from v1 Pod API
This makes the API nicer:

    resourceClaims:
    - name: with-template
      resourceClaimTemplateName: test-inline-claim-template
    - name: with-claim
      resourceClaimName: test-shared-claim

Previously, this was:

    resourceClaims:
    - name: with-template
      source:
        resourceClaimTemplateName: test-inline-claim-template
    - name: with-claim
      source:
        resourceClaimName: test-shared-claim

A more long-term benefit is that other, future alternatives
might not make sense under the "source" umbrella.

This is a breaking change. It's justified because DRA is still
alpha and will have several other API breaks in 1.31.
2024-06-27 17:53:24 +02:00
Kubernetes Prow Robot
aeed1d0e1a Merge pull request #124842 from carlory/honor-pv-reclaim-policy-e2e
Promote HonorPVReclaimPolicy to beta and enable it by default
2024-06-19 13:26:41 -07:00
Kubernetes Prow Robot
4e25953c8b Merge pull request #125485 from mimowo/refactor-job-e2e-for-conformance
Split Job e2e test to make them possible targets for conformance promotion
2024-06-19 10:06:41 -07:00
carlory
4058178b8c Promote HonorPVReclaimPolicy to beta and enable it by default 2024-06-19 13:51:37 +08:00
Kubernetes Prow Robot
0c955f7cbb Merge pull request #124617 from bart0sh/PR144-e2e_node-DRA-test-plugin-failures
e2e_node: DRA: test plugin failures
2024-06-18 01:14:19 -07:00
Kubernetes Prow Robot
debd99542f Merge pull request #125478 from aroradaman/handle-index-error
e2e/framework/metrics: handle index out of bounds panic
2024-06-16 12:46:29 -07:00
Kubernetes Prow Robot
9de747cc01 Merge pull request #125434 from ffromani/e2e-node-annotate-pods
e2e: node: add feature to annotate pods with owning code
2024-06-16 04:27:28 -07:00
Daman Arora
9fd1a21693 e2e/framework/metrics: handle index out of bounds panic
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-06-15 00:42:11 +05:30
Lukasz Szaszkiewicz
6cc90d76db e2e/apimachinery/watchlist: when comparing streamed data do not call the API directly instead use the added data. 2024-06-14 13:56:05 +02:00
Francesco Romani
7160ef4fbc e2e: node: add code to track the pod creator code
e2e_node test depend on very specific shared state (node state).
Pod leakages between tests oftentimes cause the test preconditions
to be silently corrupted, causing hard to debug CI failures.

We add the option to add an annotation to pods which records
the code line (source code:line) which triggered the pod creation,
so it becomes easier to track which test needs better cleanup.

The relevant e2e framework code is used in all the e2e suites,
so to minimize any unwanted consequences we make the feature
opt-in, planning to enable it initially (and likely only)
in the e2e_node tests.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2024-06-14 13:42:14 +02:00
Lukasz Szaszkiewicz
5b76642909 e2e/apimachinery/watchlist: test if WatchList is requested by client-go's List method when WatchListClient is enabled 2024-06-14 12:52:50 +02:00
Michal Wozniak
b954879548 Refactor Job e2e test to make them possible for conformance promotion 2024-06-13 13:41:51 +02:00
Kubernetes Prow Robot
8e791fd923 Merge pull request #125351 from Dragoncell/origink-master
update driver installer
2024-06-12 14:47:17 -07:00
Kubernetes Prow Robot
58e15c831c Merge pull request #125431 from huww98/e2e-term-sleep
e2e: add TERM trap to pod sleep command
2024-06-12 02:35:29 -07:00
Kubernetes Prow Robot
d593c886b1 Merge pull request #124350 from pohly/e2e-feature-labels
e2e: enhance WithFeatureGate labels
2024-06-11 13:02:02 -07:00
胡玮文
859bd02593 e2e: add TERM trap to pod sleep command
This should avoid the 30s delay caused by shell not responding to SIGTERM, and can only be killed by SIGKILL.

If the pod is deleted with the namespace during cleanup, this also makes cleanup faster, and frees up the resources for the next test cases faster.
2024-06-11 13:52:47 +08:00
Kubernetes Prow Robot
9d63e575f8 Merge pull request #124151 from ConnorJC3/add-vac-e2e
Add Happy Path VolumeAttributesClass CSI E2E Tests
2024-06-10 18:08:01 -07:00
Connor Catlett
ea58abfd99 Add Happy Path VolumeAttributesClass CSI E2E Tests
Signed-off-by: Connor Catlett <conncatl@amazon.com>
2024-06-10 20:03:54 +00:00
Ed Bartosh
c8c7ae85e5 e2e_node: DRA: add CountCalls API 2024-06-07 22:47:23 +03:00
Ed Bartosh
ffc407b4dd e2e_node: DRA: reimplement call blocking 2024-06-07 22:47:20 +03:00
Ed Bartosh
2ea2fb3166 e2e: test-driver: implement failure mode 2024-06-07 22:45:35 +03:00
Jiaming Xu
1d382e77e4 update container ubuntu sha256 2024-06-07 18:23:41 +00:00
Kubernetes Prow Robot
c6b5191c37 Merge pull request #122499 from mattcary/oref
Respect controllers on PVCs for retention policy
2024-06-07 09:33:04 -07:00
Davanum Srinivas
60fe406f67 remove vestiges of providerless tag
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-06-06 12:18:38 -04:00
Jiaming Xu
af5d816023 update driver installer 2024-06-05 22:21:42 +00:00
Matthew Cary
d386d6880e Respect controllers on PVCs for retention policy 2024-06-05 12:06:41 -07:00
Kubernetes Prow Robot
e67f889edc Merge pull request #125015 from aroradaman/proxy-localhost-nodeports-metric
Kube-Proxy: Track packets accepted on localhost nodeports
2024-06-04 18:49:11 -07:00
Dan Winship
b82bc5d935 Log namespace of pods in e2e failure debug 2024-05-31 09:14:58 -04:00
Kubernetes Prow Robot
e6e39db4c1 Merge pull request #125203 from danwinship/kind-loadbalancers-2
Fix eTP:Local NodePort test
2024-05-30 16:06:02 -07:00
Kubernetes Prow Robot
2d083d0a4d Merge pull request #125219 from danwinship/kind-loadbalancers-3
Fix LoadBalancerSourceRanges test
2024-05-30 13:26:10 -07:00
Dan Winship
fff883ab4a Improve eTP:Local NodePort test
It previously assumed that pod-to-other-node-nodeIP would be
unmasqueraded, but this is not the case for most network plugins. Use
a HostNetwork exec pod to avoid problems.

This also requires putting the client and endpoint on different nodes,
because with most network plugins, a node-to-same-node-pod connection
will end up using the internal "docker0" (or whatever) IP as the
source address rather than the node's public IP, and we don't know
what that IP is.

Also make it work with IPv6.
2024-05-30 11:43:07 -04:00
Kubernetes Prow Robot
2c46fafa23 Merge pull request #125150 from humblec/csi-update
update CSI spec to v1.9.0 which has modifyVolume API support and other updated libraries in place
2024-05-30 05:13:48 -07:00
Dan Winship
d01b264345 Improve LoadBalancerSourceRanges test
The existing test had two problems:

  - It only made connections from within the cluster, so for VIP-type
    LBs, the connections would always be short-circuited and so this
    only tested kube-proxy's LBSR implementation, not the cloud's.

  - For non-VIP-type LBs, it would only work if pod-to-LB connections
    were not masqueraded, which is not the case for most network
    plugins.

Fix this by (a) testing connectivity from the test binary, so as to
test filtering external IPs, and ensure we're testing the cloud's
behavior; and (b) using both pod and node IPs when testing the
in-cluster case.

Also some general cleanup of the test case.
2024-05-30 07:24:36 -04:00
Kubernetes Prow Robot
9a44f68916 Merge pull request #123974 from p0lyn0mial/upstream-client-go-features-testing
client-go/features/testing: intro SetFeatureGatesDuringTest
2024-05-29 17:01:25 -07:00
Dan Winship
41527afe28 Move eTP:Local NodePort test from loadbalancer.go to service.go
(And in particular, remove `[Feature:LoadBalancer]` from it.)
2024-05-29 16:21:36 -04:00
Dan Winship
5230bab600 Convert test/e2e/network/service.go to utils/ptr 2024-05-29 16:21:34 -04:00
Kubernetes Prow Robot
e821e4f978 Merge pull request #125200 from soltysh/fix_typo
Fix the field typo in statefulset patch operation
2024-05-29 13:06:15 -07:00
Maciej Szulik
23bf694830 Fix the field typo in statefulset patch operation 2024-05-29 18:55:35 +02:00
Lukasz Szaszkiewicz
ba89ae3ddf e2e/apimachinery/watchlist: uses SetFeatureDuringTest 2024-05-29 12:45:18 +02:00
Humble Chirammal
35d358b53d Update mock for ModifyVolume controller function support
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-05-28 17:58:46 +05:30
Stephen Kitt
5300466a5c Use canonical json-patch v4 import
The canonical import for json-patch v4 is
gopkg.in/evanphx/json-patch.v4 (see
https://github.com/evanphx/json-patch/blob/master/README.md#get-it for
reference).

Using the v4-specific path should also reduce the risk of unwanted v5
upgrade attempts, because they won't be offered as automated upgrades
by dependency upgrade management tools, and they won't happen through
indirect dependencies (see
https://github.com/kubernetes/kubernetes/pull/120327 for context).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-05-28 10:48:22 +02:00
Antonio Ojea
98fe5ace74 tag e2e test that depends on cloud-provider-gcp 2024-05-27 18:14:48 +00:00
Kubernetes Prow Robot
b5bc8025be Merge pull request #125110 from brianpursley/k-125109
Add logging to show which unexpected events were received in kubectl events e2e test
2024-05-27 09:31:02 -07:00
Humble Chirammal
d8458293d2 add controllerModifyVolume test function
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-05-27 19:57:54 +05:30
Kubernetes Prow Robot
b2817dc432 Merge pull request #125040 from carlory/fix-125012
Fix kubelet on Windows fails if a pod has SecurityContext with RunAsUser
2024-05-27 04:58:20 -07:00
Ed Bartosh
f609aa8310 e2e: test-driver: add new matchers 2024-05-25 01:02:25 +03:00
Kubernetes Prow Robot
ec93d3b71a Merge pull request #123160 from bart0sh/PR133-e2e-node-device-plugin-fix-features
e2e_node: fix DevicePlugin feature flags
2024-05-24 09:23:10 -07:00
Kubernetes Prow Robot
e0e6c9633d Merge pull request #125112 from neolit123/1.31-add-v-to-windows-pause-after-promo
dependencies: start using registry.k8s.io/pause:3.10
2024-05-24 03:55:56 -07:00
Lubomir I. Ivanov
5e290ebc90 switch k/k to pause version 3.10 2024-05-24 10:02:51 +03:00
Brian Pursley
39d24b0877 Add logging to show which unexpected events were received in kubectl events e2e test
Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2024-05-23 20:33:17 -04:00