Commit Graph

15047 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
f2428d66cc Merge pull request #125163 from pohly/dra-kubelet-api-version-independent-no-rest-proxy
DRA: make kubelet independent of the resource.k8s.io API version
2024-07-18 17:47:48 -07:00
Patrick Ohly
7701a48bd6 dra kubelet: bump gRPC API to v1alpha4
The previous changes are an API break, therefore we need a new version.
2024-07-18 23:30:09 +02:00
Patrick Ohly
ee3205804b dra e2e: demonstrate how to use RBAC + VAP for a kubelet plugin
In reality, the kubelet plugin of a DRA driver is meant to be deployed as a
daemonset with a service account that limits its
permissions. https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/#additional-metadata-in-pod-bound-tokens
ensures that the node name is bound to the pod, which then can be used
in a validating admission policy (VAP) to ensure that the operations are
limited to the node.

In E2E testing, we emulate that via impersonation. This ensures that the plugin
does not accidentally depend on additional permissions.
2024-07-18 23:30:09 +02:00
Kubernetes Prow Robot
f82030111f Merge pull request #126198 from aojea/flaku_lb
e2e: fix flake on loadbalancer tests
2024-07-18 13:41:45 -07:00
Kubernetes Prow Robot
c4bd05df1c Merge pull request #126181 from bitoku/refactor-kubeletseparatediskgc
[sig-testing] refactor KubeletSeparateDiskGC nodefeature
2024-07-18 10:39:25 -07:00
Kubernetes Prow Robot
601eb7e9cf Merge pull request #122922 from marosset/windows-memory-eviction
Add support for Windows memory-pressure eviction
2024-07-18 10:39:06 -07:00
Kubernetes Prow Robot
3adafc6a50 Merge pull request #126194 from mimowo/job-e2e-tests-cleanup
Format helper scripts in Job e2e tests as multiline for readability
2024-07-18 09:33:39 -07:00
Kubernetes Prow Robot
dda657b598 Merge pull request #126191 from p0lyn0mial/upstream-revert-promote-watch-list-to-beta
Revert "Promote WatchList feature to Beta"
2024-07-18 07:39:28 -07:00
Antonio Ojea
fdbe6912d2 e2e: fix flake on loadbalancer tests
validating that one endpoint is reachable from one part of the cluster
is not enough condition to consider it will be reachable from any node,
as different Services proxies on different nodes will have different
propagation delays for the EndpointSlices and Services information.
2024-07-18 12:54:54 +00:00
Kubernetes Prow Robot
a491ea7af4 Merge pull request #126092 from pacoxu/fix-node-lease
fix node lease e2e flakes
2024-07-18 02:44:43 -07:00
Michal Wozniak
2d680054c1 Format helper scripts in Job e2e tests as multiline for readability 2024-07-18 11:05:36 +02:00
Ayato Tokubi
662ed5a42d refactor nodefeature
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
2024-07-18 08:45:52 +00:00
Lukasz Szaszkiewicz
367401cd85 Revert "e2e/apimachinery/watchlist: always run WatchList e2e tests"
This reverts commit be00cded2d.
2024-07-18 09:29:46 +02:00
Patrick Ohly
348f94ab55 DRA: read ResourceClaim in DRA drivers
This is the second and final step towards making kubelet independent of the
resource.k8s.io API versioning because it now doesn't need to copy structs
defined by that API from the driver to the API server.
2024-07-18 09:09:20 +02:00
Patrick Ohly
616a014347 DRA: move ResourceSlice publishing into DRA drivers
This is a first step towards making kubelet independent of the resource.k8s.io
API versioning because it now doesn't need to copy structs defined by that API
from the driver to the API server. The next step is removing the other
direction (reading ResourceClaim status and passing the resource handle to
drivers).

The drivers must get deployed so that they have their own connection to the API
server. Securing at least the writes via a validating admission policy should
be possible.

As before, the kubelet removes all ResourceSlices for its node at startup, then
DRA drivers recreate them if (and only if) they start up again. This ensures
that there are no orphaned ResourceSlices when a driver gets removed while the
kubelet was down.

While at it, logging gets cleaned up and updated to use structured, contextual
logging as much as possible. gRPC requests and streams now use a shared,
per-process request ID and streams also get logged.
2024-07-18 09:09:19 +02:00
Mark Rossetti
3683010a7c Adding e2e test to validate memory-pressure eviction on Windows
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2024-07-17 15:11:30 -07:00
Michal Wozniak
25d938b481 Promote JobPodFailurePolicy and PodDisruptionConditions e2e tests to Conformance 2024-07-17 18:13:08 +02:00
Kubernetes Prow Robot
ad72be434d Merge pull request #125417 from bitoku/splitfs
KEP-4191: Split Image Filesystem add end-to-end tests
2024-07-16 23:27:06 -07:00
Kubernetes Prow Robot
a00c834ebf Merge pull request #123303 from haircommander/proc-mount-e2e-tests
KEP-4265: add e2e tests for ProcMountType
2024-07-16 19:37:05 -07:00
Peter Hunt
4f57a1448d test/e2e: add test to ensure proc mount is stripped from windows pods
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-07-16 17:46:23 -04:00
Peter Hunt
d6ee9ca860 test/e2e_node: add proc mount tests
including one Alpha only test, as the feature is in alpha

Signed-off-by: Peter Hunt <pehunt@redhat.com>
Co-authored-by: Sohan Kunkerkar <sohank2602@gmail.com>
2024-07-16 17:45:26 -04:00
Kubernetes Prow Robot
fc3abdaf2d Merge pull request #125470 from everpeace/kep-3619-SupplementalGroupsPolicy-e2e
KEP-3619: Add NodeStatus.Features.SupplementalGroupsPolicy API and e2e
2024-07-16 13:57:06 -07:00
Kubernetes Prow Robot
7e1cfca8af Merge pull request #126110 from chengjoey/docs/e2e-pod-traffic
add some notes for e2e preserve source pod ip test
2024-07-16 09:20:57 -07:00
Shingo Omura
a89bb017a3 KEP-3619: implement e2e test for SupplementalGroupsPolicy 2024-07-16 12:36:00 +09:00
joey
47133919e7 add some notes for e2e preserve source pod ip test
Signed-off-by: joey <zchengjoey@gmail.com>
2024-07-16 10:18:05 +08:00
Kubernetes Prow Robot
06ec6ba05d Merge pull request #125305 from p0lyn0mial/upstream-dynamic-client-uses-watch-list
dynamic client: add support for API streaming
2024-07-15 10:05:12 -07:00
Lukasz Szaszkiewicz
ba160f6ed3 test/apimachinery/watchlist: add scenario for dynamic client's List method 2024-07-15 11:56:02 +02:00
Lukasz Szaszkiewicz
951d325111 test/apimachinery/watchlist: move common functionality to separate functions 2024-07-15 11:56:02 +02:00
Paco Xu
8720d94785 fix node lease e2e flakes 2024-07-15 11:59:44 +08:00
Antonio Ojea
93736f268e use node.status.addresses to obtain hostnetwork pods hostnames 2024-07-14 19:02:14 +00:00
Kubernetes Prow Robot
0a3330d6c9 Merge pull request #125510 from mimowo/extend-job-conditions
Delay setting terminal Job conditions until all pods are terminal
2024-07-12 08:12:46 -07:00
Kevin Hannon
950781a342 add e2e tests for split filesystem
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
2024-07-12 14:19:17 +00:00
Michal Wozniak
0acffd6f2c Extend the e2e tests 2024-07-12 11:16:21 +02:00
Jan Safranek
dd655f7cc0 Remove static PV topology test
With cloud providers removed from k/k, e2e tests have no way how to create a
static AWS EBS, GCE PD, Azure Disk or other cloud volume. Test
"[sig-storage] Multi-AZ Cluster Volumes should schedule pods in the same
zones as statically provisioned PVs" constantly fails with "provider does
not support volume creation".

There is no upstream e2e job that would run the test and show the error.
We noticed it downstream in OpenShift.
2024-07-12 09:49:26 +02:00
Kubernetes Prow Robot
1080554307 Merge pull request #124969 from RomanBednar/pv-phase-transition-time-ga
graduate PersistentVolumeLastPhaseTransitionTime to GA in 1.31
2024-07-11 15:29:19 -07:00
Michal Wozniak
1b13b55945 do not assert in e2e tests 2024-07-11 21:00:58 +02:00
Michal Wozniak
f999dd0490 Verify the Job status active, ready and terminating are 0
Signed-off-by: Michal Wozniak <michalwozniak@google.com>
2024-07-11 20:54:15 +02:00
Michal Wozniak
fb7704ba03 Delay setting terminal Job conditions until all pods are terminal
Fix the integration test typecheck

Fix after rebase

# Conflicts:
#	pkg/controller/job/job_controller_test.go
2024-07-11 20:54:09 +02:00
Kubernetes Prow Robot
a0bfe666df Merge pull request #125202 from hjet/inplace-vertical-scaling-e2e-rollback
[FG:InPlacePodVerticalScaling] Roll back resize patches in doPodResizeTests
2024-07-09 17:53:12 -07:00
Kubernetes Prow Robot
4a214f6ad9 Merge pull request #125461 from mimowo/pod-disruption-conditions-ga
Graduate PodDisruptionConditions to stable
2024-07-09 11:08:13 -07:00
Kubernetes Prow Robot
42064e03c5 Merge pull request #125973 from fxierh/sample-apiserver-e2e-race-fix
Mark test cases which set up a sample-apiserver as serial
2024-07-09 06:02:04 -07:00
Feilian Xie
9cdacdc514 Mark a test case which sets up a sample-apiserver as serial due to potential conflicts with other test cases which do the same.
Signed-off-by: Feilian Xie <fxie@redhat.com>
2024-07-09 19:28:14 +08:00
Kubernetes Prow Robot
06c7d9a565 Merge pull request #125966 from pohly/e2e-framework-label-filter-skip-fix
e2e framework: don't add default skip when --label-filter is used
2024-07-09 04:12:38 -07:00
Patrick Ohly
4bed71dd15 e2e framework: don't add default skip when --label-filter is used
The new pull-kubernetes-kind-dra uses
    -label-filter='Feature: containsAny DynamicResourceAllocation && !Flaky && !Serial'
to run DRA tests. That didn't work because the E2E framework behind its back
added the default skip expression.
2024-07-08 21:13:52 +02:00
jeffinkottaram
f57d67c847 Fix should complete a service status lifecycle test
Fix `[sig-network] Services [It] should complete a service status
lifecycle [Conformance]` not iterating through all `Conditions` in
status, causing failure when a `Condition` already exists.

Log Conditions instead of Loadbalanacer.
2024-07-08 01:15:14 -04:00
hjet
30e395a7fa Roll back resize patches in doPodResizeTests 2024-07-05 11:41:07 -04:00
Daman Arora
6605afe58a e2e/network/lb: fix url formatting for ipv6
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-07-03 20:48:54 +05:30
Amim Knabben
e5de3c3a81 Increasing limit margin to 8% on pod cpu limit test 2024-07-02 14:09:51 -03:00
Filip Křepinský
3f8d799c9f fix readiness flake in UnhealthyPodEvictionPolicy 2024-07-02 00:15:59 +02:00
Kubernetes Prow Robot
79fee524e6 Merge pull request #125483 from wojtek-t/storage_readiness_hook
Implement resilient watchcache initialization post-start-hook
2024-07-01 13:48:29 -07:00