Merge pull request #133140 from KobayashiD27/fix-integ-dra-testFilterTimeout

DRA Updated to not directly change the global variable `claim`
This commit is contained in:
Kubernetes Prow Robot
2025-07-23 04:58:33 -07:00
committed by GitHub

View File

@@ -589,8 +589,9 @@ func testFilterTimeout(tCtx ktesting.TContext) {
createSlice(tCtx, slice.Obj())
otherSlice := st.MakeResourceSlice("worker-1", driverName).Devices(deviceNames...)
createdOtherSlice := createSlice(tCtx, otherSlice.Obj())
claim := claim.DeepCopy()
claim.Spec.Devices.Requests[0].Count = int64(devicesPerSlice + 1) // Impossible to allocate.
claim := createClaim(tCtx, namespace, "", class, claim)
claim = createClaim(tCtx, namespace, "", class, claim)
tCtx.Run("disabled", func(tCtx ktesting.TContext) {
pod := createPod(tCtx, namespace, "", claim, podWithClaimName)