diff --git a/pkg/kubelet/cri/remote/conversion.go b/pkg/kubelet/cri/remote/conversion.go index 35539397755..120b718cbf5 100644 --- a/pkg/kubelet/cri/remote/conversion.go +++ b/pkg/kubelet/cri/remote/conversion.go @@ -113,6 +113,10 @@ func v1alpha2LinuxContainerResources(from *runtimeapi.LinuxContainerResources) * return (*v1alpha2.LinuxContainerResources)(unsafe.Pointer(from)) } +func v1alpha2WindowsContainerResources(from *runtimeapi.WindowsContainerResources) *v1alpha2.WindowsContainerResources { + return (*v1alpha2.WindowsContainerResources)(unsafe.Pointer(from)) +} + func v1alpha2ExecRequest(from *runtimeapi.ExecRequest) *v1alpha2.ExecRequest { // If this function changes, also adapt the corresponding Exec code in // pkg/kubelet/cri/remote/remote_runtime.go diff --git a/pkg/kubelet/cri/remote/remote_runtime.go b/pkg/kubelet/cri/remote/remote_runtime.go index c1f5f4cf32d..2f479f0fc71 100644 --- a/pkg/kubelet/cri/remote/remote_runtime.go +++ b/pkg/kubelet/cri/remote/remote_runtime.go @@ -656,6 +656,7 @@ func (r *remoteRuntimeService) UpdateContainerResources(containerID string, reso _, err = r.runtimeClientV1alpha2.UpdateContainerResources(ctx, &runtimeapiV1alpha2.UpdateContainerResourcesRequest{ ContainerId: containerID, Linux: v1alpha2LinuxContainerResources(resources.GetLinux()), + Windows: v1alpha2WindowsContainerResources(resources.GetWindows()), }) } if err != nil {