mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user