From d977adbb0ff046c76fa2cb864dad5deb4582cb8d Mon Sep 17 00:00:00 2001 From: Hui-Zhi Date: Sat, 23 Jul 2016 09:06:59 -0400 Subject: [PATCH] Fix devices information struct in container --- pkg/kubelet/container/runtime.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg/kubelet/container/runtime.go b/pkg/kubelet/container/runtime.go index 66c3be0936..7b845c0b37 100644 --- a/pkg/kubelet/container/runtime.go +++ b/pkg/kubelet/container/runtime.go @@ -381,6 +381,15 @@ type PortMapping struct { HostIP string } +type DeviceInfo struct { + // Path on host for mapping + PathOnHost string + // Path in Container to map + PathInContainer string + // Cgroup permissions + Permissions string +} + // RunContainerOptions specify the options which are necessary for running containers type RunContainerOptions struct { // The environment variables list. @@ -388,7 +397,7 @@ type RunContainerOptions struct { // The mounts for the containers. Mounts []Mount // The host devices mapped into the containers. - Devices []string + Devices []DeviceInfo // The port mappings for the containers. PortMappings []PortMapping // If the container has specified the TerminationMessagePath, then