mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Fix devices information struct in container
This commit is contained in:
		@@ -381,6 +381,15 @@ type PortMapping struct {
 | 
				
			|||||||
	HostIP string
 | 
						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
 | 
					// RunContainerOptions specify the options which are necessary for running containers
 | 
				
			||||||
type RunContainerOptions struct {
 | 
					type RunContainerOptions struct {
 | 
				
			||||||
	// The environment variables list.
 | 
						// The environment variables list.
 | 
				
			||||||
@@ -388,7 +397,7 @@ type RunContainerOptions struct {
 | 
				
			|||||||
	// The mounts for the containers.
 | 
						// The mounts for the containers.
 | 
				
			||||||
	Mounts []Mount
 | 
						Mounts []Mount
 | 
				
			||||||
	// The host devices mapped into the containers.
 | 
						// The host devices mapped into the containers.
 | 
				
			||||||
	Devices []string
 | 
						Devices []DeviceInfo
 | 
				
			||||||
	// The port mappings for the containers.
 | 
						// The port mappings for the containers.
 | 
				
			||||||
	PortMappings []PortMapping
 | 
						PortMappings []PortMapping
 | 
				
			||||||
	// If the container has specified the TerminationMessagePath, then
 | 
						// If the container has specified the TerminationMessagePath, then
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user