mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Merge pull request #78400 from alculquicondor/feature/fake_resources
Add linux container resources to fake runtime service
This commit is contained in:
commit
62d30255b8
@ -43,6 +43,9 @@ type FakeContainer struct {
|
|||||||
// ContainerStatus contains the runtime information for a container.
|
// ContainerStatus contains the runtime information for a container.
|
||||||
runtimeapi.ContainerStatus
|
runtimeapi.ContainerStatus
|
||||||
|
|
||||||
|
// LinuxResources contains the resources specific to linux containers.
|
||||||
|
LinuxResources *runtimeapi.LinuxContainerResources
|
||||||
|
|
||||||
// the sandbox id of this container
|
// the sandbox id of this container
|
||||||
SandboxID string
|
SandboxID string
|
||||||
}
|
}
|
||||||
@ -327,7 +330,8 @@ func (r *FakeRuntimeService) CreateContainer(podSandboxID string, config *runtim
|
|||||||
Labels: config.Labels,
|
Labels: config.Labels,
|
||||||
Annotations: config.Annotations,
|
Annotations: config.Annotations,
|
||||||
},
|
},
|
||||||
SandboxID: podSandboxID,
|
SandboxID: podSandboxID,
|
||||||
|
LinuxResources: config.GetLinux().GetResources(),
|
||||||
}
|
}
|
||||||
|
|
||||||
return containerID, nil
|
return containerID, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user