Commit Graph

2175 Commits

Author SHA1 Message Date
Michael Aspinwall
84f85712be feat: Add matcher and conformance tests ensuring that RV is uint128 2025-10-01 00:01:50 +00:00
Michael Aspinwall
37fcfcd29e feat: Add conformance tests for all resources for comparable resource version 2025-09-29 23:32:07 +00:00
Jan Safranek
7930c2db4c Fix SELinux e2e tests waiting for "container created" event
A recent PR has changed the content of "Started container" event to "Container started".
Instead of checking the exact event message, check the event source
("kubelet") and reason ("Started"), that should uniquely identify the
event.
2025-09-23 18:08:50 +02:00
Hemant Kumar
f99cb99a1b Wait for quota to report used before creating pvc
This should avoid races between pvc creation and quota creation
2025-09-15 13:16:22 -04: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
Kubernetes Prow Robot
8c1094d54a Merge pull request #133615 from carlory/fix-133610
Promote VAC API test to conformance
2025-08-28 05:37:17 -07:00
huweiwen
c16d72c414 e2e: case for multiple volumes reference one PVC 2025-08-28 13:05:07 +08:00
Kubernetes Prow Robot
e71ce95d52 Merge pull request #133426 from jsafrane/selinux-e2e-driver2
Add e2e test for SELinuxMount to CSI drivers
2025-08-27 18:29:10 -07:00
Kubernetes Prow Robot
b8f5561ab7 Merge pull request #133425 from jsafrane/selinux-e2e-driver
Fix SELinux label comparison
2025-08-27 17:18:56 -07:00
Kubernetes Prow Robot
3355bd0800 Merge pull request #133186 from ConnorJC3/fix-flaky-vac-test
Do not remove PVC ClaimRef to fix flaky VAC test
2025-08-27 16:05:41 -07:00
carlory
f920b064d0 Promote VAC API test to conformance 2025-08-20 11:10:33 +08:00
Roman Bednar
064b591617 improve CRD handling in VolumePopulator test
Test: provisioning should provision storage with any volume data source

During CSI certification test we observed that the test can fail
with a message:
"customresourcedefinitions.apiextensions.k8s.io \"volumepopulators.populator.storage.k8s.io\" already exists"

This is because the test does not consider that this CRD can be already
installed in the cluster.

The test was updated to handle the CRD better by creating it for the
duration of the test and removing it afterward. Otherwise, if the CRD
is already installed, the test will neither create nor remove it
2025-08-11 13:50:03 +02:00
Jan Safranek
1ea4720268 Add e2e test for SELinuxMount to CSI drivers 2025-08-08 14:25:24 +02:00
Jan Safranek
9a8a4a3b44 Add missing cases to SELinuxMount tests 2025-08-07 17:24:53 +02:00
Eddie
727a6e6db5 Reject pod when attachment limit is exceeded (#132933)
* Reject pod when attachment limit is exceeded

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

* Record admission rejection

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

* Fix pull-kubernetes-linter-hints

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

* Fix AD Controller unit test failure

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

* Consolidate error handling logic in WaitForAttachAndMount

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

* Improve error context

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

* Update admissionRejectionReasons to include VolumeAttachmentLimitExceededReason

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

* Update status message

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

* Add TestWaitForAttachAndMountVolumeAttachLimitExceededError unit test

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

* Add e2e test

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

* Fix pull-kubernetes-linter-hints

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

---------

Signed-off-by: Eddie Torres <torredil@amazon.com>
2025-07-24 17:58:54 -07:00
Connor Catlett
725b17067a Do not remove PVC ClaimRef to fix flaky VAC test
Signed-off-by: Connor Catlett <conncatl@amazon.com>
2025-07-24 18:05:25 +00: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
Penghao
0da0897c18 Bump external snapshotter for vgs tests
Signed-off-by: Penghao <pewang@redhat.com>
2025-07-22 16:38:20 +08:00
Kubernetes Prow Robot
d1914723d9 Merge pull request #132891 from vr4manta/driver_node_selection
Added NodeSelectors field to external DriverDefinition
2025-07-18 09:48:33 -07:00
Kubernetes Prow Robot
99f55ae4ef Merge pull request #132662 from gnufied/bump-recovery-feature-ga
Bump recovery feature ga
2025-07-17 17:10:25 -07: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
vr4manta
3636d5bd3a Added NodeSelectors field to DriverDefinition 2025-07-11 08:23:44 -04:00
Hemant Kumar
c126870ebc Bump RecoverVolumeExpansionFailure to GA 2025-07-10 12:19:31 -04:00
PatrickLaabs
e74bbd5db4 chore: depr. pointer pkg replacement for test/e2e 2025-07-06 22:32:21 +02:00
Kubernetes Prow Robot
3fdc11cbe0 Merge pull request #130230 from carlory/cleanup-CSIDriverRegistry
clean up CSIDriverRegistry
2025-07-04 15:25:31 -07:00
Kubernetes Prow Robot
f93a8c58d7 Merge pull request #132674 from jsafrane/fix-volumelimit-cleanup
Fix volume limit e2e test cleanup
2025-07-03 08:37:25 -07:00
Jan Safranek
ebea328f17 Fix volume limit e2e test cleanup
Pass the local test state to cleanupTest() as a pointer. It is mostly empty
at the point of calling `DeferCleanup(cleanupTest)`, so using
`ginkgo.DeferCleanup(cleanupTest, ..., l.podNames, ...)` will pass empty
podNames to the cleanup.

And now that the cleanup actually does something, fix the error handling in
it.
2025-07-03 10:46:45 +02:00
Hemant Kumar
c6f87f6e64 Fix offline expansion tests for case where no node expansion tests is required 2025-07-02 10:17:26 -04:00
Hemant Kumar
d67e7937e6 Remove recovery related featuregates 2025-06-27 17:57:16 -04:00
Hemant Kumar
fa6f27c8f7 Add extra validations for newer resizing related fields 2025-06-27 17:52:46 -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
bb2199f392 Merge pull request #131717 from carlory/clean-volume-provisioning
e2e tests: remove all cloud provider calls in storage/volume_provisioning.go
2025-06-18 02:40:58 -07:00
Kubernetes Prow Robot
2689185671 Merge pull request #131542 from carlory/volume-limit-e2e
e2e tests: fix in-tree plugin volume limit
2025-06-17 15:40:50 -07:00
Kubernetes Prow Robot
9ad46596d2 Merge pull request #129680 from carlory/rm-feature-label-NodeOutOfServiceVolumeDetach
Remove feature label NodeOutOfServiceVolumeDetach
2025-06-12 00:44:56 -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
carlory
808a5cfd46 e2e tests: remove all cloud provider calls in storage/volume_provisioning.go 2025-05-12 11:57:27 +08:00
carlory
94dd0b8402 Move test cases from mounted_volume_resize into testsuites/volume_expand.go 2025-05-09 14:15:17 +08: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
Hemant Kumar
36685c6f1c Add information about expected status 2025-05-05 14:40:06 -04:00
Hemant Kumar
784c589a77 Check for newer resizing related fields after expansion is successful 2025-05-02 16:29:04 -04:00
carlory
4d5d48da70 Remove unused volume limit constants 2025-04-30 13:41:27 +08:00
Kubernetes Prow Robot
ea08d4df93 Merge pull request #128946 from jackfrancis/SetPVCVACName-eventually-gomega
test: don't panic during an Eventually retry loop
2025-04-29 09:17:55 -07: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
carlory
7c53a5aaa4 Remove feature label NodeOutOfServiceVolumeDetach 2025-04-24 14:54:41 +08: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