2161 Commits

Author SHA1 Message Date
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
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
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
Kubernetes Prow Robot
476614ef9e Merge pull request #131236 from jsafrane/fix-rwx-tests
RWX tests should create RWX volumes
2025-04-23 17:09:28 -07:00
Kubernetes Prow Robot
c77ed4ca9e Merge pull request #131217 from jsafrane/shorten-log-test-names
Shorten long directory names with e2e pod logs
2025-04-23 17:09:20 -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
Jan Safranek
e5a5f726dd Tag SELinux tests that require SELinux warning controller
The controller is available only with SELinuxChangePolicy FG enabled.
Kubernetes e2e jobs do the right --focus & --skip explicitly in the SELinux
jobs, this just helps other test runners to figure out what FGs are needed
to run the tests.

When at it, I noticed SELinuxMountReadWriteOncePod tag is always required, so
add it on the common level and not in each test.
2025-04-10 14:36:02 +02:00
Jan Safranek
975e653af4 RWX tests should create RWX volumes
The test that checks that a volume can be accessed from multiple nodes
should create ReadWriteMany volume and not ReadWriteOnce.
2025-04-10 13:01:07 +02:00
Jan Safranek
b206264ffb Shorten long directory names with e2e pod logs
In a downstream test job, I've seen an e2e test failing to create a
directory for Pod logs when running an e2e test. Shorten them to 255
characters.

For example, consider this test: "[sig-storage] CSI Mock selinux on mount metrics and SELinuxWarningController SELinuxMount metrics [LinuxOnly] [Feature:SELinux] [Serial] error is not bumped on two Pods with a different policy RWX volume (MountOption + MountOption) [FeatureGate:SELinuxMountReadWriteOncePod] [Beta] [FeatureGate:SELinuxChangePolicy] [Beta] [FeatureGate:SELinuxMount] [Beta] [Feature:OffByDefault] [sig-storage, Feature:SELinux, Serial, FeatureGate:SELinuxMountReadWriteOncePod, Beta, FeatureGate:SELinuxChangePolicy, FeatureGate:SELinuxMount, Feature:OffByDefault, BetaOffByDefault]"

During execution, the test will create a directory
`error_is_not_bumped_on_two_Pods_with_Recursive_policy_and_a_different_context_on_RWX_volume_FeatureGate_SELinuxMountReadWriteOncePod_Beta_FeatureGate_SELinuxChangePolicy_Beta_FeatureGate_SELinuxMount_Beta_Feature_OffByDefault_`,
which has 226 characters and it's close to the limit (256).
2025-04-09 15:45:31 +02:00
torredil
88a3c000e5 Implement CSI e2e test for MutableCSINodeAllocatableCount 2025-03-20 14:33:38 +00:00
carlory
21f7026c25 clean up CSIDriverRegistry 2025-03-19 14:54:12 +08:00
Kubernetes Prow Robot
94d66387d0 Merge pull request #130553 from Phaow/vac-e2e
Add protection finalizer to vac when it is created
2025-03-18 14:59:54 -07:00
Kubernetes Prow Robot
6396fa0f77 Merge pull request #130860 from carlory/remove-storage-feature-labels
e2e tests: remove unneeded storage feature label
2025-03-17 20:27:56 -07:00
Vinayak Goyal
2b504a7089 Fix failing git_repo e2e release informing tests. 2025-03-17 16:07:50 +00:00
carlory
8c9452f4ca e2e tests: remove unneeded storage feature label 2025-03-17 11:57:18 +08:00
Penghao
0393497468 Add protection finalizer to vac when it is created 2025-03-15 10:41:04 +08:00