Merge pull request #136911 from pohly/dra-e2e-data-race

DRA E2E: fix data race in test driver
This commit is contained in:
Kubernetes Prow Robot
2026-02-11 01:24:08 +05:30
committed by GitHub

View File

@@ -462,6 +462,8 @@ func (ex *ExamplePlugin) nodeUnprepareResource(ctx context.Context, claimRef kub
logger := klog.FromContext(ctx)
ex.mutex.Lock()
defer ex.mutex.Unlock()
claimID := ClaimID{Name: claimRef.Name, UID: claimRef.UID}
devices, ok := ex.prepared[claimID]
if !ok {