Unverified Commit 62d30255 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #78400 from alculquicondor/feature/fake_resources

Add linux container resources to fake runtime service
parents 2fb7b607 95b15345
......@@ -43,6 +43,9 @@ type FakeContainer struct {
// ContainerStatus contains the runtime information for a container.
runtimeapi.ContainerStatus
// LinuxResources contains the resources specific to linux containers.
LinuxResources *runtimeapi.LinuxContainerResources
// the sandbox id of this container
SandboxID string
}
......@@ -327,7 +330,8 @@ func (r *FakeRuntimeService) CreateContainer(podSandboxID string, config *runtim
Labels: config.Labels,
Annotations: config.Annotations,
},
SandboxID: podSandboxID,
SandboxID: podSandboxID,
LinuxResources: config.GetLinux().GetResources(),
}
return containerID, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment