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
ac86249a
Commit
ac86249a
authored
Oct 01, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Oct 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #33476 from jonboulle/master
Automatic merge from submit-queue CRI: various spelling and typo fixes
parents
30ca3443
cc7f3906
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
31 deletions
+31
-31
api.pb.go
pkg/kubelet/api/v1alpha1/runtime/api.pb.go
+15
-15
api.proto
pkg/kubelet/api/v1alpha1/runtime/api.proto
+16
-16
No files found.
pkg/kubelet/api/v1alpha1/runtime/api.pb.go
View file @
ac86249a
...
...
@@ -281,7 +281,7 @@ func (m *VersionResponse) GetRuntimeApiVersion() string {
return
""
}
// DNSConfig specifies the DNS servers and search domains.
// DNSConfig specifies the DNS servers and search domains
of a sandbox
.
type
DNSConfig
struct
{
// List of DNS servers of the cluster.
Servers
[]
string
`protobuf:"bytes,1,rep,name=servers" json:"servers,omitempty"`
...
...
@@ -319,7 +319,7 @@ func (m *DNSConfig) GetOptions() []string {
return
nil
}
// PortMapping specifies the port mapping configurations of
sandbox
// PortMapping specifies the port mapping configurations of
a sandbox.
type
PortMapping
struct
{
// The name of the port mapping
Name
*
string
`protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
...
...
@@ -374,7 +374,7 @@ func (m *PortMapping) GetHostIp() string {
return
""
}
// Mount specifies
the volume mount for the sandbox
// Mount specifies
a host volume to mount into a container.
type
Mount
struct
{
// The name of the volume mount.
Name
*
string
`protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
...
...
@@ -433,9 +433,9 @@ func (m *Mount) GetSelinuxRelabel() bool {
type
NamespaceOption
struct
{
// If set, use the host's network namespace.
HostNetwork
*
bool
`protobuf:"varint,1,opt,name=host_network,json=hostNetwork" json:"host_network,omitempty"`
// If set, use the host's
pid namesap
ce.
// If set, use the host's
PID namespa
ce.
HostPid
*
bool
`protobuf:"varint,2,opt,name=host_pid,json=hostPid" json:"host_pid,omitempty"`
// If set, use the host's
ipc
namespace.
// If set, use the host's
IPC
namespace.
HostIpc
*
bool
`protobuf:"varint,3,opt,name=host_ipc,json=hostIpc" json:"host_ipc,omitempty"`
XXX_unrecognized
[]
byte
`json:"-"`
}
...
...
@@ -466,12 +466,12 @@ func (m *NamespaceOption) GetHostIpc() bool {
return
false
}
// LinuxPodSandboxConfig holds platform-specific configuraions for Linux
// LinuxPodSandboxConfig holds platform-specific configura
t
ions for Linux
// host platforms and Linux-based containers.
type
LinuxPodSandboxConfig
struct
{
// The parent cgroup of the pod sandbox.
// The cgroupfs style syntax will be used, but the container runtime can
// convert it to systemd semantic
e
s if needed.
// convert it to systemd semantics if needed.
CgroupParent
*
string
`protobuf:"bytes,1,opt,name=cgroup_parent,json=cgroupParent" json:"cgroup_parent,omitempty"`
// The configurations for the sandbox's namespaces.
// This will be used only if the PodSandbox uses namespace for isolation.
...
...
@@ -500,12 +500,12 @@ func (m *LinuxPodSandboxConfig) GetNamespaceOptions() *NamespaceOption {
// PodSandboxMetadata holds all necessary information for building the sandbox name.
// The container runtime is encouraged to expose the metadata associated with the
// PodSandbox in its user interface for better user experience.
E.g., runtime can
// construct a unique PodSandboxName based on the metadata.
// PodSandbox in its user interface for better user experience.
For example,
//
the runtime can
construct a unique PodSandboxName based on the metadata.
type
PodSandboxMetadata
struct
{
// The pod name of the sandbox. Same as the pod name in the PodSpec.
Name
*
string
`protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The pod
uid
of the sandbox. Same as the pod UID in the PodSpec.
// The pod
UID
of the sandbox. Same as the pod UID in the PodSpec.
Uid
*
string
`protobuf:"bytes,2,opt,name=uid" json:"uid,omitempty"`
// The pod namespace of the sandbox. Same as the pod namespace in the PodSpec.
Namespace
*
string
`protobuf:"bytes,3,opt,name=namespace" json:"namespace,omitempty"`
...
...
@@ -649,7 +649,7 @@ func (m *PodSandboxConfig) GetLinux() *LinuxPodSandboxConfig {
}
type
RunPodSandboxRequest
struct
{
// The configuration for creating a PodSand
B
ox.
// The configuration for creating a PodSand
b
ox.
Config
*
PodSandboxConfig
`protobuf:"bytes,1,opt,name=config" json:"config,omitempty"`
XXX_unrecognized
[]
byte
`json:"-"`
}
...
...
@@ -667,7 +667,7 @@ func (m *RunPodSandboxRequest) GetConfig() *PodSandboxConfig {
}
type
RunPodSandboxResponse
struct
{
// The id of the PodSand
B
ox
// The id of the PodSand
b
ox
PodSandboxId
*
string
`protobuf:"bytes,1,opt,name=pod_sandbox_id,json=podSandboxId" json:"pod_sandbox_id,omitempty"`
XXX_unrecognized
[]
byte
`json:"-"`
}
...
...
@@ -685,7 +685,7 @@ func (m *RunPodSandboxResponse) GetPodSandboxId() string {
}
type
StopPodSandboxRequest
struct
{
// The id of the PodSand
B
ox
// The id of the PodSand
b
ox
PodSandboxId
*
string
`protobuf:"bytes,1,opt,name=pod_sandbox_id,json=podSandboxId" json:"pod_sandbox_id,omitempty"`
XXX_unrecognized
[]
byte
`json:"-"`
}
...
...
@@ -712,7 +712,7 @@ func (*StopPodSandboxResponse) ProtoMessage() {}
func
(
*
StopPodSandboxResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptorApi
,
[]
int
{
12
}
}
type
RemovePodSandboxRequest
struct
{
// The id of the PodSand
B
ox
// The id of the PodSand
b
ox
PodSandboxId
*
string
`protobuf:"bytes,1,opt,name=pod_sandbox_id,json=podSandboxId" json:"pod_sandbox_id,omitempty"`
XXX_unrecognized
[]
byte
`json:"-"`
}
...
...
@@ -739,7 +739,7 @@ func (*RemovePodSandboxResponse) ProtoMessage() {}
func
(
*
RemovePodSandboxResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptorApi
,
[]
int
{
14
}
}
type
PodSandboxStatusRequest
struct
{
// The id of the PodSand
B
ox
// The id of the PodSand
b
ox
PodSandboxId
*
string
`protobuf:"bytes,1,opt,name=pod_sandbox_id,json=podSandboxId" json:"pod_sandbox_id,omitempty"`
XXX_unrecognized
[]
byte
`json:"-"`
}
...
...
pkg/kubelet/api/v1alpha1/runtime/api.proto
View file @
ac86249a
...
...
@@ -73,7 +73,7 @@ message VersionResponse {
optional
string
runtime_api_version
=
4
;
}
// DNSConfig specifies the DNS servers and search domains.
// DNSConfig specifies the DNS servers and search domains
of a sandbox
.
message
DNSConfig
{
// List of DNS servers of the cluster.
repeated
string
servers
=
1
;
...
...
@@ -89,7 +89,7 @@ enum Protocol {
UDP
=
1
;
}
// PortMapping specifies the port mapping configurations of
sandbox
// PortMapping specifies the port mapping configurations of
a sandbox.
message
PortMapping
{
// The name of the port mapping
optional
string
name
=
1
;
...
...
@@ -103,7 +103,7 @@ message PortMapping {
optional
string
host_ip
=
5
;
}
// Mount specifies
the volume mount for the sandbox
// Mount specifies
a host volume to mount into a container.
message
Mount
{
// The name of the volume mount.
optional
string
name
=
1
;
...
...
@@ -121,18 +121,18 @@ message Mount {
message
NamespaceOption
{
// If set, use the host's network namespace.
optional
bool
host_network
=
1
;
// If set, use the host's
pid namesap
ce.
// If set, use the host's
PID namespa
ce.
optional
bool
host_pid
=
2
;
// If set, use the host's
ipc
namespace.
// If set, use the host's
IPC
namespace.
optional
bool
host_ipc
=
3
;
}
// LinuxPodSandboxConfig holds platform-specific configuraions for Linux
// LinuxPodSandboxConfig holds platform-specific configura
t
ions for Linux
// host platforms and Linux-based containers.
message
LinuxPodSandboxConfig
{
// The parent cgroup of the pod sandbox.
// The cgroupfs style syntax will be used, but the container runtime can
// convert it to systemd semantic
e
s if needed.
// The cgroupfs style syntax will be used, but the container runtime can
// convert it to systemd semantics if needed.
optional
string
cgroup_parent
=
1
;
// The configurations for the sandbox's namespaces.
// This will be used only if the PodSandbox uses namespace for isolation.
...
...
@@ -141,12 +141,12 @@ message LinuxPodSandboxConfig {
// PodSandboxMetadata holds all necessary information for building the sandbox name.
// The container runtime is encouraged to expose the metadata associated with the
// PodSandbox in its user interface for better user experience.
E.g., runtime can
// construct a unique PodSandboxName based on the metadata.
// PodSandbox in its user interface for better user experience.
For example,
//
the runtime can
construct a unique PodSandboxName based on the metadata.
message
PodSandboxMetadata
{
// The pod name of the sandbox. Same as the pod name in the PodSpec.
optional
string
name
=
1
;
// The pod
uid
of the sandbox. Same as the pod UID in the PodSpec.
// The pod
UID
of the sandbox. Same as the pod UID in the PodSpec.
optional
string
uid
=
2
;
// The pod namespace of the sandbox. Same as the pod namespace in the PodSpec.
optional
string
namespace
=
3
;
...
...
@@ -194,31 +194,31 @@ message PodSandboxConfig {
}
message
RunPodSandboxRequest
{
// The configuration for creating a PodSand
B
ox.
// The configuration for creating a PodSand
b
ox.
optional
PodSandboxConfig
config
=
1
;
}
message
RunPodSandboxResponse
{
// The id of the PodSand
B
ox
// The id of the PodSand
b
ox
optional
string
pod_sandbox_id
=
1
;
}
message
StopPodSandboxRequest
{
// The id of the PodSand
B
ox
// The id of the PodSand
b
ox
optional
string
pod_sandbox_id
=
1
;
}
message
StopPodSandboxResponse
{}
message
RemovePodSandboxRequest
{
// The id of the PodSand
B
ox
// The id of the PodSand
b
ox
optional
string
pod_sandbox_id
=
1
;
}
message
RemovePodSandboxResponse
{}
message
PodSandboxStatusRequest
{
// The id of the PodSand
B
ox
// The id of the PodSand
b
ox
optional
string
pod_sandbox_id
=
1
;
}
...
...
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