Skip to content

Commit 6732906

Browse files
Implement UpdateContainerResources in FakeRuntimeService
Signed-off-by: Aldo Culquicondor <[email protected]>
1 parent 5bbad4f commit 6732906

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

staging/src/k8s.io/cri-api/pkg/apis/testing/fake_runtime_service.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,10 @@ func (r *FakeRuntimeService) ContainerStatus(containerID string) (*runtimeapi.Co
407407
}
408408

409409
func (r *FakeRuntimeService) UpdateContainerResources(string, *runtimeapi.LinuxContainerResources) error {
410+
r.Lock()
411+
defer r.Unlock()
412+
413+
r.Called = append(r.Called, "UpdateContainerResources")
410414
return nil
411415
}
412416

0 commit comments

Comments
 (0)