Skip to content

Commit 7dac368

Browse files
authored
Merge pull request kubernetes#77418 from alculquicondor/fix/fake-update-container-resources
Implement UpdateContainerResources in FakeRuntimeService
2 parents e1f0526 + 6732906 commit 7dac368

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
@@ -409,6 +409,10 @@ func (r *FakeRuntimeService) ContainerStatus(containerID string) (*runtimeapi.Co
409409
}
410410

411411
func (r *FakeRuntimeService) UpdateContainerResources(string, *runtimeapi.LinuxContainerResources) error {
412+
r.Lock()
413+
defer r.Unlock()
414+
415+
r.Called = append(r.Called, "UpdateContainerResources")
412416
return nil
413417
}
414418

0 commit comments

Comments
 (0)