Commit Graph

2187 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
3ef0262766 Merge pull request #134760 from Rishita-Golla/resize-test
Add step field in SizeRange struct for volume_expand tests
2025-10-28 14:20:00 -07:00
Kubernetes Prow Robot
f9952b77bd Merge pull request #134879 from gnufied/fix-vac-tests-external
Remove FromName for VAC external tests
2025-10-27 13:21:43 -07:00
Hemant Kumar
62b23aeb0c Remove FromName for VAC external tests
VAC must have one or more parameters defined and hence
you can't just create it from driver's name during e2e testing.
2025-10-27 10:15:32 -04:00
Fabio Bertinatto
b40df46b0b test/e2e: remove unused v1beta.VolumeAttributesClass field 2025-10-27 08:56:02 -03:00
Kubernetes Prow Robot
1135d04f1d Merge pull request #134826 from aramase/aramase/f/kep_5538_beta_impl
CSI driver opt-in for service account tokens via secrets field
2025-10-24 13:57:35 -07:00
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
Benjamin Elder
b0a15b9163 switch storage e2e tests from md5 to sha256 2025-10-21 15:25:11 -07:00
Rishita Golla
448584e1c8 feat: add step field and clarify comment for volume expansion 2025-10-21 21:24:45 +00:00
Patrick Ohly
d0a2a0d22e e2e: find and fix reuse of test names
This reports and fixes for test/e2e:

    ERROR: E2E suite initialization was faulty, these errors must be fixed:
    ERROR: apimachinery/mutatingadmissionpolicy.go:184: full test name is not unique: "[sig-api-machinery] MutatingAdmissionPolicy [Privileged:ClusterAdmin] [Feature:MutatingAdmissionPolicy] [FeatureGate:MutatingAdmissionPolicy] [Beta] [Feature:OffByDefault] should support MutatingAdmissionPolicy API operations" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e/apimachinery/mutatingadmissionpolicy.go:184, /nvme/gopath/src/k8s.io/kubernetes/test/e2e/apimachinery/mutatingadmissionpolicy.go:606)
    ERROR: apimachinery/mutatingadmissionpolicy.go:412: full test name is not unique: "[sig-api-machinery] MutatingAdmissionPolicy [Privileged:ClusterAdmin] [Feature:MutatingAdmissionPolicy] [FeatureGate:MutatingAdmissionPolicy] [Beta] [Feature:OffByDefault] should support MutatingAdmissionPolicyBinding API operations" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e/apimachinery/mutatingadmissionpolicy.go:412, /nvme/gopath/src/k8s.io/kubernetes/test/e2e/apimachinery/mutatingadmissionpolicy.go:834)
    ERROR: common/node/pod_level_resources.go:250: full test name is not unique: "[sig-node] Pod Level Resources [Serial] [Feature:PodLevelResources] [FeatureGate:PodLevelResources] [Beta] Guaranteed QoS pod with container resources" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e/common/node/pod_level_resources.go:250 (2x))
    ERROR: dra/dra.go:1899: full test name is not unique: "[sig-node] [DRA] kubelet [Feature:DynamicResourceAllocation] [FeatureGate:DRAConsumableCapacity] [Alpha] [Feature:OffByDefault] [FeatureGate:DynamicResourceAllocation] must allow multiple allocations and consume capacity [KubeletMinVersion:1.34]" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e/dra/dra.go:1899 (2x))
    ERROR: storage/testsuites/volume_group_snapshottable.go:173: full test name is not unique: "[sig-storage] CSI Volumes [Driver: csi-hostpath] [Testpattern:  (delete policy)] volumegroupsnapshottable [Feature:volumegroupsnapshot] VolumeGroupSnapshottable  should create snapshots for multiple volumes in a pod" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e/storage/testsuites/volume_group_snapshottable.go:173 (2x))
    ERROR: storage/testsuites/volume_group_snapshottable.go:173: full test name is not unique: "[sig-storage] CSI Volumes [Driver: pd.csi.storage.gke.io] [Serial] [Testpattern:  (delete policy)] volumegroupsnapshottable [Feature:volumegroupsnapshot] VolumeGroupSnapshottable  should create snapshots for multiple volumes in a pod" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e/storage/testsuites/volume_group_snapshottable.go:173 (2x))

And for test/e2e_node:

    ERROR: cpu_manager_test.go:1622: full test name is not unique: "[sig-node] CPU Manager [Serial] [Feature:CPUManager] when checking the CFS quota management should disable for guaranteed pod with exclusive CPUs assigned" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e_node/cpu_manager_test.go:1622, /nvme/gopath/src/k8s.io/kubernetes/test/e2e_node/cpu_manager_test.go:1642)
    ERROR: eviction_test.go:800: full test name is not unique: "[sig-node] LocalStorageCapacityIsolationFSQuotaMonitoring [Slow] [Serial] [Disruptive] [Feature:LocalStorageCapacityIsolationQuota] [Feature:LSCIQuotaMonitoring] [Feature:UserNamespacesSupport] when we run containers that should cause use quotas for LSCI monitoring (quotas enabled: true)  should eventually evict all of the correct pods" (/nvme/gopath/src/k8s.io/kubernetes/test/e2e_node/eviction_test.go:800 (2x))
2025-10-17 20:19:52 +02:00
Kubernetes Prow Robot
3b632270e9 Merge pull request #134633 from Phaow/add-vgs-csi-e2e
Enable external VolumeGroupSnapshot tests
2025-10-16 08:50:41 -07:00
Penghao
9763935518 Refine: VolumeGroupSnapshot tests
Signed-off-by: Penghao <pewang@redhat.com>
2025-10-16 15:33:10 +08:00
Penghao
78830afba8 Enable external VolumeGroupSnapshot tests
Signed-off-by: Penghao <pewang@redhat.com>
2025-10-16 11:14:08 +08:00
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