Commit Graph

25312 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
Marek Siarkowicz
038bbacb41 Fix tracing test for list nodes 2024-06-20 10:56:51 +02:00
Kubernetes Prow Robot
fc786fc6e8 Merge pull request #125552 from liggitt/fix-timeout-wiring
KEP-3221: Fix structured authorization webhook timeout wiring and detection
2024-06-19 19:00:16 -07: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
Jordan Liggitt
c50f68d6ee Fix structured authorization webhook timeout wiring 2024-06-19 15:36:36 -04: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
Maciej Skoczeń
7532e74117 Don't fail on churn delete in scheduler_perf tests when context canceled 2024-06-19 08:08:13 +00:00
carlory
4058178b8c Promote HonorPVReclaimPolicy to beta and enable it by default 2024-06-19 13:51:37 +08:00
Kubernetes Prow Robot
7dc30dce15 Merge pull request #125504 from macsko/scheduler_perf_gated_pods_test
scheduler_perf: Measure performance of scheduling when many gated pods
2024-06-18 12:40:02 -07:00
Kubernetes Prow Robot
3f9b79fc11 Merge pull request #125145 from xyz-li/fix_watch_namespace
apiserver: fix watch namespace
2024-06-18 10:39:44 -07:00
Maciej Skoczeń
05b2c14d64 Measure performance of scheduling when many gated pods 2024-06-18 12:39:21 +00:00
Maciej Skoczeń
c09440c691 Add possibility to delete pods at specified frequency in scheduler_perf tests 2024-06-18 09:40:50 +00:00
Kubernetes Prow Robot
5df8e15a84 Merge pull request #125562 from pohly/scheduler-perf-default-verbosity
scheduler_perf: fix setting default verbosity
2024-06-18 02:16:07 -07:00
Kubernetes Prow Robot
3b90ae4f58 Merge pull request #124548 from pohly/dra-scheduler-perf-structured-parameters
scheduler_perf: add DRA structured parameters test with shared claims
2024-06-18 02:15:58 -07: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
Patrick Ohly
381c28407e scheduler_perf: fix setting default verbosity
It needs to be set twice, once for ktesting+klog, once for
component-base/logs. The latter was not done before and thus quite a bit of log
output was produced with verbosity 0.
2024-06-18 08:44:16 +02:00
xyz-li
818fabe37b apiserver: fix watch namespace
For request like '/api/v1/watch/namespaces/*', don't set scope.namespace.
Because the func `addWatcher` add a watcher to allWatchers with the value `scope.namespace` not empty.
But the function `dispatchEvent` dispatch event with an empty namespace.

Signed-off-by: xyz-li <hui0787411@163.com>
2024-06-18 11:53:28 +08:00
Patrick Ohly
d88a153086 scheduler_perf: add DRA structured parameters test with shared claims
Several pods sharing the same claim is not common, but can be useful and thus
should get tested.

Before, createPods and createAny operations were not able to do this because
each generated object was the same. What we need are different, predictable
names of the claims (from createAny) and different references to those in the
pods (from createPods). Now text/template processing with the index number of
the pod respectively claim as input is used to inject these varying fields. A
"div" function is needed to use the same claim in several different pods.

While at it, some existing test cases get cleaned up a bit (removal of
incorrect comments, adding comments for testing with queuing hints).
2024-06-17 10:13:22 +02: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
0fd6746b2a Merge pull request #125518 from pohly/scheduler-perf-cleanup-fix
scheduler_perf: shut down apiserver clients before apiserver
2024-06-16 10:03: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
086a500d8f e2e: node: use test owner tracking
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.

Use the new facility to annotate pods with test owner (= the
test code which created the test) to help debug these failures.

For more context, please check the conversation in #123468

Signed-off-by: Francesco Romani <fromani@redhat.com>
2024-06-14 13:42:14 +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
9c8c61aee4 Merge pull request #122234 from AxeZhan/podUpdateEvent
[Scheduler]Put pod into the correct queue during podUpdate
2024-06-12 12:28:17 -07:00
AxeZhan
d66f8f9413 schedulingQueue update pod by queueHint 2024-06-12 21:26:09 +08:00
Kubernetes Prow Robot
1815a14c32 Merge pull request #125454 from kerthcet/cleanup/scheduler-perf
Remove noisy log in scheduler_perf
2024-06-12 02:35:36 -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
kerthcet
1ffa1e17cd Remove noisy log in scheduler_perf
Signed-off-by: kerthcet <kerthcet@gmail.com>
2024-06-12 11:53:35 +08: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
Kensei Nakada
8392f7fbb0 remove unused NextPod() 2024-06-11 07:22:09 +00: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
Kubernetes Prow Robot
c49b140c45 Merge pull request #125175 from dejanzele/feat/count-terminating-for-failed-jobs
Count terminating pods when deleting active pods for failed jobs
2024-06-10 16:56:37 -07:00
Kubernetes Prow Robot
a7ca13ea29 Merge pull request #125363 from cpanato/update-go-images
[go] Bump images, dependencies and versions to go 1.22.4 and distroless iptables/setcap/debian-base
2024-06-10 15:07:47 -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
Kubernetes Prow Robot
6e8e1f53b0 Merge pull request #125293 from sanposhiho/sched-perf-ds
scheduler_perf: measure the degradation of daemonset scheduling
2024-06-10 08:35:55 -07:00
Ed Bartosh
ee0340a828 e2e_node: add tests for 2 Kubelet plugins 2024-06-07 22:53:35 +03:00
Ed Bartosh
ce6faef8d8 e2e_node: change DRA test APIs to work with multiple plugins 2024-06-07 22:53:31 +03:00
Ed Bartosh
118158d8df e2e_node: DRA: test plugin failures 2024-06-07 22:51:53 +03: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