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
f4ab2b63
Commit
f4ab2b63
authored
Jan 25, 2018
by
Lee Verberne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch CRI NamespaceOption from bools to enums
parent
11104d75
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
6 deletions
+31
-6
api.pb.go
pkg/kubelet/apis/cri/v1alpha1/runtime/api.pb.go
+0
-0
api.proto
pkg/kubelet/apis/cri/v1alpha1/runtime/api.proto
+31
-6
No files found.
pkg/kubelet/apis/cri/v1alpha1/runtime/api.pb.go
View file @
f4ab2b63
This diff is collapsed.
Click to expand it.
pkg/kubelet/apis/cri/v1alpha1/runtime/api.proto
View file @
f4ab2b63
...
...
@@ -178,14 +178,39 @@ message Mount {
MountPropagation
propagation
=
5
;
}
// A NamespaceMode describes the intended namespace configuration for each
// of the namespaces (Network, PID, IPC) in NamespaceOption. Runtimes should
// map these modes as appropriate for the technology underlying the runtime.
enum
NamespaceMode
{
// A POD namespace is common to all containers in a pod.
// For example, a container with a PID namespace of POD expects to view
// all of the processes in all of the containers in the pod.
POD
=
0
;
// A CONTAINER namespace is restricted to a single container.
// For example, a container with a PID namespace of CONTAINER expects to
// view only the processes in that container.
CONTAINER
=
1
;
// A NODE namespace is the namespace of the Kubernetes node.
// For example, a container with a PID namespace of NODE expects to view
// all of the processes on the host running the kubelet.
NODE
=
2
;
}
// NamespaceOption provides options for Linux namespaces.
message
NamespaceOption
{
// If set, use the host's network namespace.
bool
host_network
=
1
;
// If set, use the host's PID namespace.
bool
host_pid
=
2
;
// If set, use the host's IPC namespace.
bool
host_ipc
=
3
;
// Network namespace for this container/sandbox.
// Note: There is currently no way to set CONTAINER scoped network in the Kubernetes API.
// Namespaces currently set by the kubelet: POD, NODE
NamespaceMode
network
=
1
;
// PID namespace for this container/sandbox.
// Note: The CRI default is POD, but the v1.PodSpec default is CONTAINER.
// The kubelet's runtime manager will set this to CONTAINER explicitly for v1 pods.
// Namespaces currently set by the kubelet: POD, CONTAINER, NODE
NamespaceMode
pid
=
2
;
// IPC namespace for this container/sandbox.
// Note: There is currently no way to set CONTAINER scoped IPC in the Kubernetes API.
// Namespaces currently set by the kubelet: POD, NODE
NamespaceMode
ipc
=
3
;
}
// Int64Value is the wrapper of int64.
...
...
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