mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-22 01:23:18 +00:00
Updated to not directly change the global variable claim
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user