Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d977adbb
Commit
d977adbb
authored
Jul 23, 2016
by
Hui-Zhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix devices information struct in container
parent
b3590348
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
runtime.go
pkg/kubelet/container/runtime.go
+10
-1
No files found.
pkg/kubelet/container/runtime.go
View file @
d977adbb
...
@@ -381,6 +381,15 @@ type PortMapping struct {
...
@@ -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 {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment