Skip to content

Commit 002a722

Browse files
gnufiedbertinatto
authored andcommitted
UPSTREAM: 131495: Handle unsupported node expansion for RWX volumes
Co-authored-by: Hemant Kumar <[email protected]> Signed-off-by: carlory <[email protected]>
1 parent ccbcad4 commit 002a722

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkg/volume/util/operationexecutor/node_expander_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,18 @@ func TestNodeExpander(t *testing.T) {
139139
expectFinalErrors: false,
140140
expectedStatusSize: resource.MustParse("2G"),
141141
},
142+
{
143+
name: "RWX pv.spec.cap = pvc.status.cap, resizeStatus='', desiredSize > actualSize, reize_op=unsupported",
144+
pvc: addAccessMode(getTestPVC(volumetesting.FailWithUnSupportedVolumeName, "2G", "2G", "2G", nil), v1.ReadWriteMany),
145+
pv: getTestPV(volumetesting.FailWithUnSupportedVolumeName, "2G"),
146+
recoverVolumeExpansionFailure: true,
147+
expectError: false,
148+
expectedResizeStatus: "",
149+
expectResizeCall: false,
150+
assumeResizeOpAsFinished: true,
151+
expectFinalErrors: false,
152+
expectedStatusSize: resource.MustParse("2G"),
153+
},
142154
{
143155
name: "pv.spec.cap > pvc.status.cap, resizeStatus=node_expansion_pending, featuregate=disabled",
144156
pvc: getTestPVC("test-vol0", "2G", "1G", "2G", &nodeResizePending),

0 commit comments

Comments
 (0)