@@ -34,35 +34,36 @@ import (
34
34
)
35
35
36
36
const (
37
- Version = "Version"
38
- RunPodSandbox = "RunPodSandbox"
39
- StopPodSandbox = "StopPodSandbox"
40
- RemovePodSandbox = "RemovePodSandbox"
41
- PodSandboxStatus = "PodSandboxStatus"
42
- ListPodSandbox = "ListPodSandbox"
43
- CreateContainer = "CreateContainer"
44
- StartContainer = "StartContainer"
45
- StopContainer = "StopContainer"
46
- RemoveContainer = "RemoveContainer"
47
- ListContainers = "ListContainers"
48
- ContainerStatus = "ContainerStatus"
49
- UpdateContainerResources = "UpdateContainerResources"
50
- ReopenContainerLog = "ReopenContainerLog"
51
- ExecSync = "ExecSync"
52
- Exec = "Exec"
53
- Attach = "Attach"
54
- PortForward = "PortForward"
55
- ContainerStats = "ContainerStats"
56
- ListContainerStats = "ListContainerStats"
57
- PodSandboxStats = "PodSandboxStats"
58
- ListPodSandboxStats = "ListPodSandboxStats"
59
- UpdateRuntimeConfig = "UpdateRuntimeConfig"
60
- Status = "Status"
61
- CheckpointContainer = "CheckpointContainer"
62
- GetContainerEvents = "GetContainerEvents"
63
- ListMetricDescriptors = "ListMetricDescriptors"
64
- ListPodSandboxMetrics = "ListPodSandboxMetrics"
65
- RuntimeConfig = "RuntimeConfig"
37
+ Version = "Version"
38
+ RunPodSandbox = "RunPodSandbox"
39
+ StopPodSandbox = "StopPodSandbox"
40
+ RemovePodSandbox = "RemovePodSandbox"
41
+ PodSandboxStatus = "PodSandboxStatus"
42
+ ListPodSandbox = "ListPodSandbox"
43
+ CreateContainer = "CreateContainer"
44
+ StartContainer = "StartContainer"
45
+ StopContainer = "StopContainer"
46
+ RemoveContainer = "RemoveContainer"
47
+ ListContainers = "ListContainers"
48
+ ContainerStatus = "ContainerStatus"
49
+ UpdateContainerResources = "UpdateContainerResources"
50
+ ReopenContainerLog = "ReopenContainerLog"
51
+ ExecSync = "ExecSync"
52
+ Exec = "Exec"
53
+ Attach = "Attach"
54
+ PortForward = "PortForward"
55
+ ContainerStats = "ContainerStats"
56
+ ListContainerStats = "ListContainerStats"
57
+ PodSandboxStats = "PodSandboxStats"
58
+ ListPodSandboxStats = "ListPodSandboxStats"
59
+ UpdateRuntimeConfig = "UpdateRuntimeConfig"
60
+ Status = "Status"
61
+ CheckpointContainer = "CheckpointContainer"
62
+ GetContainerEvents = "GetContainerEvents"
63
+ ListMetricDescriptors = "ListMetricDescriptors"
64
+ ListPodSandboxMetrics = "ListPodSandboxMetrics"
65
+ RuntimeConfig = "RuntimeConfig"
66
+ UpdatePodSandboxResources = "UpdatePodSandboxResources"
66
67
)
67
68
68
69
// AddInjector inject the error or delay to the next call to the RuntimeService.
@@ -407,6 +408,15 @@ func (p *RemoteRuntime) UpdateRuntimeConfig(ctx context.Context, req *runtimeapi
407
408
return & runtimeapi.UpdateRuntimeConfigResponse {}, nil
408
409
}
409
410
411
+ // UpdatePodSandboxResources synchronously updates the PodSandboxConfig.
412
+ func (p * RemoteRuntime ) UpdatePodSandboxResources (ctx context.Context , req * runtimeapi.UpdatePodSandboxResourcesRequest ) (* runtimeapi.UpdatePodSandboxResourcesResponse , error ) {
413
+ if err := p .runInjectors (UpdatePodSandboxResources ); err != nil {
414
+ return nil , err
415
+ }
416
+
417
+ return p .runtimeService .UpdatePodSandboxResources (ctx , req )
418
+ }
419
+
410
420
// Status returns the status of the runtime.
411
421
func (p * RemoteRuntime ) Status (ctx context.Context , req * runtimeapi.StatusRequest ) (* runtimeapi.StatusResponse , error ) {
412
422
if err := p .runInjectors (Status ); err != nil {
0 commit comments