Merge pull request #78400 from alculquicondor/feature/fake_resources

Add linux container resources to fake runtime service
This commit is contained in:
Kubernetes Prow Robot
2019-05-29 22:55:10 -07:00
committed by GitHub

View File

@@ -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
}
@@ -328,6 +331,7 @@ func (r *FakeRuntimeService) CreateContainer(podSandboxID string, config *runtim
Annotations: config.Annotations,
},
SandboxID: podSandboxID,
LinuxResources: config.GetLinux().GetResources(),
}
return containerID, nil