CSI: revert introduction of context with cancellation

The traditional behavior of PodIO was to ignore the context. Changing that to
use the canceled context was risky because maybe some cleanup operation after
cancellation of the context wouldn't run anymore when it previously did.

However, this is theoretical. Tests all seemed to pass fine even without this
change.
This commit is contained in:
Patrick Ohly
2026-01-12 11:33:15 +01:00
parent 4a3d822689
commit 06d52b7702

View File

@@ -657,7 +657,7 @@ func (m *mockCSIDriver) PrepareTest(ctx context.Context, f *framework.Framework)
VolumeMountGroupRequired: m.enableVolumeMountGroup,
EnableTopology: m.enableTopology,
IO: proxy.PodDirIO{
TCtx: f.TContext(ctx),
TCtx: f.TContext(context.Background() /* no cancellation, the traditional behavior! */),
Namespace: m.driverNamespace.Name,
PodName: podname,
ContainerName: "busybox",