Commit Graph

608 Commits

Author SHA1 Message Date
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
cpanato
a3b193c6e9 [go] Bump images, dependencies and versions to go 1.22.4 and distroless iptables/setcap/debian-base
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-06-06 18:13:15 +02:00
Humble Chirammal
07ef65a834 make use of etcd v3.5.14 in the builds.
https://github.com/etcd-io/etcd/releases/tag/v3.5.14

This release has been built with GO 1.21.10

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-06-01 09:06:35 +05:30
Lubomir I. Ivanov
5e290ebc90 switch k/k to pause version 3.10 2024-05-24 10:02:51 +03:00
Kubernetes Prow Robot
59ba132f16 Merge pull request #124544 from carlory/remove-cephfs
remove the support for in-tree volume plugin cephfs
2024-05-13 14:09:52 -07:00
Maciej Szulik
0c0bd6d0b7 Cleanup unused functions 2024-05-13 17:01:50 +02:00
cpanato
30efae7c8b [go] Bump images, dependencies and versions to go 1.22.3 and distroless iptables
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-05-12 15:05:26 +02:00
carlory
6795820cfa remove the support for in-tree volume plugin cephfs 2024-05-10 15:00:26 +08:00
Daman Arora
a6d3a1b4fc promote agnhost to v2.52
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-04-28 22:26:45 +05:30
John Riendeau
a53999f086 Bump version of agnhost used in e2e tests 2024-04-26 08:22:26 -05:00
Kubernetes Prow Robot
695a984f56 Merge pull request #124027 from liangyuanpeng/etcd_update_3.5.13
etcd: update to v3.5.13
2024-04-23 06:00:02 -07:00
Kubernetes Prow Robot
528cff12f6 Merge pull request #120969 from skitt/uber-go-mock
Switch from golang/mock to uber-go/mock
2024-04-17 23:59:24 -07:00
Lan Liang
1dc735fd70 etcd: update to v3.5.13
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-04-13 09:37:25 +00:00
cpanato
1366f1f447 [go] Bump images, dependencies and versions to go 1.22.2 and distroless iptables
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-04-05 14:27:57 +02:00
Stephen Kitt
6bf667af06 Switch from golang/mock to uber-go/mock
See https://github.com/golang/mock#gomock: golang/mock is no longer
maintained, and should be replaced by go.uber.org/mock.

This allows golang/mock to be dropped from the status and vendored
fields in unwanted-dependencies.json.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-03-07 09:12:16 +01:00
cpanato
70221e8405 [go] Bump images, dependencies and versions to go 1.22.1 and distroless iptables
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-03-06 13:09:17 -05:00
Anish Ramasekar
78fb0bae22 wire up discovery url in authenticator
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2024-03-03 17:34:51 -08:00
Patrick Ohly
1d653e6185 test: use cancelation from ktesting
The return type of ktesting.NewTestContext is now a TContext. Code
which combined it WithCancel often didn't compile anymore (cannot overwrite
ktesting.TContext with context.Context). This is a good thing because all of
that code can be simplified to let ktesting handle the cancelation.
2024-03-01 07:51:22 +01:00
Kubernetes Prow Robot
e457683e6c Merge pull request #123444 from pohly/test-context-expect-no-error
ktesting: several fixes and better unit testing
2024-02-26 20:05:40 -08:00
Rajalakshmi-Girish1
fd5019a546 ktesting: ut flake fix for CI 2024-02-26 07:26:20 -05:00
Kubernetes Prow Robot
689dca08e1 Merge pull request #123479 from Jefftree/sample-apiserver-129
Fix sample-apiserver rbac and bump to 1.29
2024-02-25 16:41:38 -08:00
Patrick Ohly
840ef14907 ktesting: doc updates and fixes
First-in-first-out is wrong for cleanup, it's LIFO.

Updated some comments to make them more informative and fixed indention.
2024-02-25 18:13:58 +01:00
Patrick Ohly
1ecd4053de ktesting: skip timing check in unit test
Extending the duration and the allowed delta in f6682370b1 was still not enough
to make the unit test run reliably in pull-kubernetes-unit.

Now it uses the original, stricter timing again, but only when run locally. In
Prow (detected by checking the "CI" env variable), the duration check is
skipped.
2024-02-24 19:26:29 +01:00
Patrick Ohly
8980b4b846 Revert "fix flaky ut in TestCause contexthelper_test"
This reverts commit f6682370b1.
2024-02-24 19:21:01 +01:00
Jefftree
bbef156ef5 update 129 2024-02-23 23:53:54 -05:00
Jefftree
b3216214f9 Fix sample-apiserver rbac for v1.27 and bump e2e 2024-02-23 23:53:54 -05:00
Patrick Ohly
4cb4228522 ktesting: improve unit test coverage
In particular ExpectNoError needed testing, as it was unused so far and not
functional in its initial implementation.
2024-02-22 12:04:42 +01:00
Patrick Ohly
4ffa628ead ktesting: add missing methods to error context
Expect and ExpectNoError were not implemented and thus unintentionally
inherited from the base TContext.
2024-02-22 11:43:54 +01:00
Patrick Ohly
dc6abc3ff8 ktesting: add Underlier type alias
This may help avoid importing both this ktesting and klog's ktesting.
2024-02-22 11:42:48 +01:00
Patrick Ohly
fe10bfb044 ktesting: fix ExpectNoError
The error wasn't actually being checked and generating the description was
broken.
2024-02-22 11:41:51 +01:00
Paco Xu
f6682370b1 fix flaky ut in TestCause contexthelper_test 2024-02-21 19:00:41 +08:00
Kubernetes Prow Robot
64386c5aba Merge pull request #122419 from pohly/scheduler-perf-create-any
scheduler-perf: create any object from YAML
2024-02-19 07:44:40 -08:00
Davanum Srinivas
611f8ba815 bump nfs-provisioner-to-v4.0.8
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-02-19 07:18:21 -05:00
Davanum Srinivas
fa6429a31c Use new 1.4 NFS image
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-02-18 20:53:20 -05:00
Kubernetes Prow Robot
d76d7a1e7a Merge pull request #123288 from AkihiroSuda/agnhost
e2e_node: replace `registry.k8s.io/stress:v1` with agnhost
2024-02-14 18:08:41 -08:00
Akihiro Suda
5d861b6f12 promote agnhost to v2.47
Since v2.45, the `stress` subcommand was added and the CI issue was fixed:
- kubernetes/kubernetes PR 123258
- kubernetes/kubernetes PR 123284
- kubernetes/k8s.io     PR 6422

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-02-14 19:33:46 +09:00
Monis Khan
b8a59346fe test/oidc: extract key type to allow testing different algs
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-02-13 17:05:33 -05:00
Patrick Ohly
63aa261583 ktesting: add TContext
The new TContext interface combines a normal context and the testing interface,
then adds some helper methods. The context gets canceled when the test is done,
but that can also be requested earlier via Cancel.

The intended usage is to pass a single `tCtx ktesting.TContext` parameter
around in all helper functions that get called by a unit or integration test.

Logging is also more useful: Log[f] and Fatal[f] output is prefixed with
"[FATAL] ERROR: " to make it stand out more from regular log output.

If this approach turns out to be useful, it could be extended further (for
example, with a per-test timeout) and might get moved to a staging repository
to enable usage of it in other staging repositories.

To allow other implementations besides testing.T and testing.B, a custom
ktesting.TB interface gets defined with the methods expected from the
actual implementation. One such implementation can be ginkgo.GinkgoT().
2024-02-11 10:51:38 +01:00
cpanato
73cc31847f fix
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-02-09 15:01:16 +01:00
bzsuni
658e3308f3 etcd: Update to version 3.5.12
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2024-02-07 21:16:08 +08:00
cpanato
ac9482d15f update distroless-iptables to v0.5.0 debian-base to bookworm-v1.0.1 and setcap to bookworm-v1.0.1
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-02-07 11:46:19 +01:00
Kubernetes Prow Robot
2fb99eb9e8 Merge pull request #121141 from wlq1212/introduceNewethod
using wait.Interrupted instead of deprecated wait.ErrWaitTimeout for utils
2024-02-06 11:06:34 -08:00
Kubernetes Prow Robot
b26f6dfce9 Merge pull request #121783 from atwamahmoud/ignore-scheduler-tests
Add tests for ignoring scheduler processing
2024-01-17 18:33:47 +01:00
cpanato
a5861a1262 [go] Bump images, dependencies and versions to go 1.21.6 and distroless iptables to 0.4.4
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-01-11 11:54:35 +01:00
Mahmoud Atwa
6073d1cd3d Adds tests for bypassing scheduler processing 2024-01-10 20:23:43 +00:00
Kubernetes Prow Robot
fa66a37fd9 Merge pull request #122564 from marosset/remove-big-windows-e2e-image
Removing Windows image from e2e test image utils
2024-01-03 02:19:13 +01:00
Mark Rossetti
2e8e2989d1 Removing Windows image from e2e test image utils 2024-01-02 15:53:12 -08:00
Davanum Srinivas
be88a79b6a Remove unused csi-hostpath-testing.yaml
This yaml file uses `docker.io/alpine/socat:1.7.4.3-r0`, either we figure out
how to replace the image or just eliminate the yaml itself if it is not
being used for testing anything in this repository.

Found this when we run `e2e.test --list-images`, the dockerhub image reference
above shows up which gives a false impression that we depend on this image
for our testing purposes. Also we should NOT depend on a dockerhub image anyways!

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-01-02 09:06:29 -05:00
Mohamed Omar Zaian
c8a2d5684d etcd: Update to version 3.5.11 2023-12-20 11:18:35 +01:00
Kubernetes Prow Robot
ad1ea5d456 Merge pull request #122073 from carlory/ktesting-format
uncomment ktesting.AnyToString
2023-12-14 05:10:55 +01:00