Commit Graph

378 Commits

Author SHA1 Message Date
Anish Ramasekar
30a6d4b389 Add CSI driver opt-in for service account tokens via secrets field
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-10-24 11:04:02 -07:00
Penghao
9763935518 Refine: VolumeGroupSnapshot tests
Signed-off-by: Penghao <pewang@redhat.com>
2025-10-16 15:33:10 +08:00
Stephen Kitt
81cec6df1d Bump to mockery v3
mockery has introduced breaking changes and switched to a v3 branch,
this migrates to that, mostly using the built-in migration tool. Mocks
are now generated in single files per package, except in packages
containing mocks for multiple interface packages (in
pkg/kubelet/container/testing).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2025-08-29 13:43:54 +02:00
Jan Safranek
1ea4720268 Add e2e test for SELinuxMount to CSI drivers 2025-08-08 14:25:24 +02:00
carlory
94bf8fc8a9 Promoted API VolumeAttributesClass and VolumeAttributesClassList to storage.k8s.io/v1.
Promoted feature-gate `VolumeAttributesClass` to GA (on by default)

Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-07-25 01:53:59 +08:00
Patrick Ohly
4977163860 DRA E2E: reduce port proxy verbosity
During upgrade/downgrade testing, errors are encountered while the apiserver is
down. This is normal and handled via retrying, so we don't need to be verbose.
2025-07-15 12:52:26 +02:00
Hemant Kumar
d67e7937e6 Remove recovery related featuregates 2025-06-27 17:57:16 -04:00
Eddie Torres
6f97f5bbf8 Use Mock CSI Driver for MutableCSINodeAllocatableCount storage e2e test (#132373)
* Refactor MutableCSINodeAllocatableCount storage e2e test

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Update var names and formatting

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Update function names

Signed-off-by: Eddie Torres <torredil@amazon.com>

---------

Signed-off-by: Eddie Torres <torredil@amazon.com>
2025-06-18 14:02:57 -07:00
Kubernetes Prow Robot
d50a18731a Merge pull request #130942 from torredil/storage-e2e-51231
Implement CSI e2e test for MutableCSINodeAllocatableCount
2025-06-11 20:20:55 -07:00
Kubernetes Prow Robot
90a108cb86 Merge pull request #129918 from sunnylovestiramisu/stresstest
Add Stress Tests for VolumeAttributesClass
2025-05-28 20:22:16 -07:00
sunnylovestiramisu
17946fe799 Add Stress Tests for VolumeAttributesClass 2025-05-21 18:02:52 +00:00
Davanum Srinivas
8f49fb5ce7 future-proof csi test mocks
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-05-17 20:42:08 -04:00
Kubernetes Prow Robot
b1ce2a61b5 Merge pull request #131249 from MaysaMacedo/randomize-name
Kubelet: Randomize ClusterRole name in e2e
2025-05-07 07:59:16 -07:00
Maysa Macedo
b1bb9a5885 Kubelet: Randomize ClusterRole name in e2e
It's possible that a conflict will happen when
attempting to create a `ClusterRole` resource
without a randomized name given that is a cluster
scoped object and another object with same name
might exist. This commit fixes this issue by ensuring
the name of the `ClusterRole` is randomized. Additionally,
it adds clean up for the clusterRole and clusterRoleBinding.
2025-05-06 14:30:10 -03:00
Kubernetes Prow Robot
af53af19e6 Merge pull request #130211 from carlory/add-intree-driver-for-nfs3
e2e storage test: in-tree driver adds the support for nfs v3
2025-04-24 10:52:31 -07:00
Kubernetes Prow Robot
62129df407 Merge pull request #129699 from carlory/cleanup-intree
remove unnecessary functions
2025-04-24 01:28:33 -07:00
Kubernetes Prow Robot
077a382170 Merge pull request #131242 from zhifei92/update-mockery-version
Upgrade the mockery version to v2.53.3
2025-04-23 17:09:43 -07:00
carlory
27815acee1 remove outdate comment
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-04-21 13:58:58 +08:00
zhangzhifei16
c1ff9cf4e8 chore: Upgrade the mockery version to v2.53.3. 2025-04-10 21:16:47 +08:00
torredil
88a3c000e5 Implement CSI e2e test for MutableCSINodeAllocatableCount 2025-03-20 14:33:38 +00:00
carlory
28d359beec promote HonorPVReclaimPolicy to GA
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-27 14:01:22 +08:00
carlory
4294379624 e2e storage test: intree driver adds the support for nfs v3 2025-02-17 17:49:36 +08:00
carlory
c2b455f55c remove unnecessary functions 2025-01-25 23:02:41 +08:00
Kubernetes Prow Robot
f2fe33399f Merge pull request #129700 from carlory/Update-in-tree-gcePdDriver-tests
Update in-tree gcePersistentDisk tests
2025-01-24 08:15:21 -08:00
carlory
aaac13fc6a remove gke from e2e 2025-01-20 21:50:46 +08:00
carlory
5ed3164d32 Update in-tree gcePersistentDisk tests 2025-01-20 14:55:14 +08:00
Kubernetes Prow Robot
fc7520b32f Merge pull request #129377 from carlory/deflake-subpath-tests
e2e: deflake subpath tests
2025-01-10 03:26:30 -08:00
carlory
1b7ddfe6bb e2e: deflake subpath tests
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-01-10 18:11:17 +08:00
carlory
e99fea7e3f deflake volume tests 2024-12-23 16:59:45 +08:00
Sascha Grunert
c1d0e870f4 Replace github.com/golang/protobuf with google.golang.org/protobuf
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-12-13 11:24:58 +01:00
Kubernetes Prow Robot
2f7f755662 Merge pull request #127906 from yaroslavborbat/re-introduce-fix-mount-bind
Re-introduce 126599: fix: preserve options after remount for bind mounting
2024-12-12 02:57:06 +00:00
yaroslavborbat
5db88777c4 change the CapExec value to false by default
Signed-off-by: yaroslavborbat <yaroslav.752@gmail.com>
2024-11-11 12:23:39 +03:00
Davanum Srinivas
f74d6bc86b Remove incorrect usage of golang.org/x/net/context
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-11-01 09:32:39 -04:00
yaroslavborbat
e2f6232258 preserve options after remount for bind mounting
Signed-off-by: yaroslavborbat <yaroslav.752@gmail.com>
2024-10-23 19:35:57 +03:00
Kubernetes Prow Robot
d598a3ec0f Merge pull request #126326 from manishym/group_snapshot_e2e
Add end-to-end tests for Volume Group Snapshot
2024-10-08 22:58:22 +01:00
Manish
88f9f5250d Add end-to-end tests for Volume Group Snapshot
This commit introduces comprehensive e2e tests for the
Volume Group Snapshot feature to ensure robust validation and functionality.
Addresses issue [kubernetes#1080 ](kubernetes-csi/external-snapshotter#1080).

Signed-off-by: Manish <myathnal@redhat.com>
2024-10-08 16:24:29 +05:30
Jan Safranek
02101df58f Revert "fix test"
This reverts commit 62c5fd9438.
2024-10-07 10:00:18 +02:00
Jan Safranek
5325ccd18d Revert "replace /tmp with /var/tmp"
This reverts commit b3b57e53a4.
2024-10-07 10:00:16 +02:00
yaroslavborbat
b3b57e53a4 replace /tmp with /var/tmp
Signed-off-by: yaroslavborbat <yaroslav.752@gmail.com>
2024-10-04 13:58:52 +03:00
yaroslavborbat
62c5fd9438 fix test
Signed-off-by: yaroslavborbat <yaroslav.752@gmail.com>
2024-10-03 18:39:28 +03:00
Abhishek Kr Srivastav
95860cff1c Fix Go vet errors for master golang
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com>
Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com>
2024-09-20 12:36:38 +05:30
Manish
1a2162fb75 Enable volume group snapshots in CSI hostpath plugin
This commit updates the CSI hostpath plugin configuration by adding the `--enable-volume-group-snapshots=true` argument to the container startup parameters. This change allows the CSI hostpath plugin to support volume group snapshots functionality, enhancing testing capabilities for features that require group snapshot support in end-to-end tests.

Signed-off-by: Manish <myathnal@redhat.com>
2024-09-18 07:32:13 +05:30
Hemant Kumar
de5e4963c1 Use allocatedResources as new size for finishing volume expansion
on the node.

Also add new tests for node only expansion modes
2024-08-14 09:24:48 -04:00
Kubernetes Prow Robot
b2799bbda7 Merge pull request #124690 from mowangdk/test/add_e2e_test_for_volume_health
chore: Add e2e test for NodeGetVolumeStats
2024-08-13 13:00:43 -07:00
carlory
0260c7d023 Promote VolumeAttributesClass to beta 2024-07-23 13:58:14 +08:00
mowangdk
7111e41951 Remove useless get volume stat field 2024-07-18 12:56:32 +08:00
mowangdk
28fbbeb0fc Replace get volume stat with get volume health 2024-06-29 22:34:16 +08:00
Stephen Kitt
3f36c83c68 Switch to stretchr/testify / mockery for mocks
testify is used throughout the codebase; this switches mocks from
gomock to testify with the help of mockery for code generation.

Handlers and mocks in test/utils/oidc are moved to a new package:
mockery operates package by package, and requires packages to build
correctly; test/utils/oidc/testserver.go relies on the mocks and fails
to build when they are removed. Moving the interface and mocks to a
different package allows mockery to process that package without
having to build testserver.go.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-06-20 19:42:53 +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
carlory
4058178b8c Promote HonorPVReclaimPolicy to beta and enable it by default 2024-06-19 13:51:37 +08:00