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
9ca0d32f
Commit
9ca0d32f
authored
Jan 05, 2018
by
Kai Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve comments for kubelet
parent
f33e0b33
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
16 deletions
+16
-16
api.pb.go
pkg/kubelet/apis/cri/runtime/v1alpha2/api.pb.go
+4
-4
api.proto
pkg/kubelet/apis/cri/runtime/v1alpha2/api.proto
+4
-4
api.pb.go
pkg/kubelet/apis/deviceplugin/v1alpha/api.pb.go
+3
-3
api.proto
pkg/kubelet/apis/deviceplugin/v1alpha/api.proto
+2
-2
constants.go
pkg/kubelet/apis/deviceplugin/v1alpha/constants.go
+2
-2
cadvisor_fake.go
pkg/kubelet/cadvisor/testing/cadvisor_fake.go
+1
-1
No files found.
pkg/kubelet/apis/cri/runtime/v1alpha2/api.pb.go
View file @
9ca0d32f
...
@@ -1066,7 +1066,7 @@ func (m *PodSandboxStatus) GetAnnotations() map[string]string {
...
@@ -1066,7 +1066,7 @@ func (m *PodSandboxStatus) GetAnnotations() map[string]string {
type
PodSandboxStatusResponse
struct
{
type
PodSandboxStatusResponse
struct
{
// Status of the PodSandbox.
// Status of the PodSandbox.
Status
*
PodSandboxStatus
`protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
Status
*
PodSandboxStatus
`protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
// Info is extra information of the PodSandbox. The key could be abitrary string, and
// Info is extra information of the PodSandbox. The key could be a
r
bitrary string, and
// value should be in json format. The information could include anything useful for
// value should be in json format. The information could include anything useful for
// debug, e.g. network namespace for linux container based container runtime.
// debug, e.g. network namespace for linux container based container runtime.
// It should only be returned non-empty when Verbose is true.
// It should only be returned non-empty when Verbose is true.
...
@@ -2401,7 +2401,7 @@ func (m *ContainerStatus) GetLogPath() string {
...
@@ -2401,7 +2401,7 @@ func (m *ContainerStatus) GetLogPath() string {
type
ContainerStatusResponse
struct
{
type
ContainerStatusResponse
struct
{
// Status of the container.
// Status of the container.
Status
*
ContainerStatus
`protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
Status
*
ContainerStatus
`protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
// Info is extra information of the Container. The key could be abitrary string, and
// Info is extra information of the Container. The key could be a
r
bitrary string, and
// value should be in json format. The information could include anything useful for
// value should be in json format. The information could include anything useful for
// debug, e.g. pid for linux container based container runtime.
// debug, e.g. pid for linux container based container runtime.
// It should only be returned non-empty when Verbose is true.
// It should only be returned non-empty when Verbose is true.
...
@@ -2870,7 +2870,7 @@ func (m *ImageStatusRequest) GetVerbose() bool {
...
@@ -2870,7 +2870,7 @@ func (m *ImageStatusRequest) GetVerbose() bool {
type
ImageStatusResponse
struct
{
type
ImageStatusResponse
struct
{
// Status of the image.
// Status of the image.
Image
*
Image
`protobuf:"bytes,1,opt,name=image" json:"image,omitempty"`
Image
*
Image
`protobuf:"bytes,1,opt,name=image" json:"image,omitempty"`
// Info is extra information of the Image. The key could be abitrary string, and
// Info is extra information of the Image. The key could be a
r
bitrary string, and
// value should be in json format. The information could include anything useful
// value should be in json format. The information could include anything useful
// for debug, e.g. image config for oci image based container runtime.
// for debug, e.g. image config for oci image based container runtime.
// It should only be returned non-empty when Verbose is true.
// It should only be returned non-empty when Verbose is true.
...
@@ -3173,7 +3173,7 @@ func (m *StatusRequest) GetVerbose() bool {
...
@@ -3173,7 +3173,7 @@ func (m *StatusRequest) GetVerbose() bool {
type
StatusResponse
struct
{
type
StatusResponse
struct
{
// Status of the Runtime.
// Status of the Runtime.
Status
*
RuntimeStatus
`protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
Status
*
RuntimeStatus
`protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
// Info is extra information of the Runtime. The key could be abitrary string, and
// Info is extra information of the Runtime. The key could be a
r
bitrary string, and
// value should be in json format. The information could include anything useful for
// value should be in json format. The information could include anything useful for
// debug, e.g. plugins used by the container runtime.
// debug, e.g. plugins used by the container runtime.
// It should only be returned non-empty when Verbose is true.
// It should only be returned non-empty when Verbose is true.
...
...
pkg/kubelet/apis/cri/runtime/v1alpha2/api.proto
View file @
9ca0d32f
...
@@ -414,7 +414,7 @@ message PodSandboxStatus {
...
@@ -414,7 +414,7 @@ message PodSandboxStatus {
message
PodSandboxStatusResponse
{
message
PodSandboxStatusResponse
{
// Status of the PodSandbox.
// Status of the PodSandbox.
PodSandboxStatus
status
=
1
;
PodSandboxStatus
status
=
1
;
// Info is extra information of the PodSandbox. The key could be abitrary string, and
// Info is extra information of the PodSandbox. The key could be a
r
bitrary string, and
// value should be in json format. The information could include anything useful for
// value should be in json format. The information could include anything useful for
// debug, e.g. network namespace for linux container based container runtime.
// debug, e.g. network namespace for linux container based container runtime.
// It should only be returned non-empty when Verbose is true.
// It should only be returned non-empty when Verbose is true.
...
@@ -852,7 +852,7 @@ message ContainerStatus {
...
@@ -852,7 +852,7 @@ message ContainerStatus {
message
ContainerStatusResponse
{
message
ContainerStatusResponse
{
// Status of the container.
// Status of the container.
ContainerStatus
status
=
1
;
ContainerStatus
status
=
1
;
// Info is extra information of the Container. The key could be abitrary string, and
// Info is extra information of the Container. The key could be a
r
bitrary string, and
// value should be in json format. The information could include anything useful for
// value should be in json format. The information could include anything useful for
// debug, e.g. pid for linux container based container runtime.
// debug, e.g. pid for linux container based container runtime.
// It should only be returned non-empty when Verbose is true.
// It should only be returned non-empty when Verbose is true.
...
@@ -993,7 +993,7 @@ message ImageStatusRequest {
...
@@ -993,7 +993,7 @@ message ImageStatusRequest {
message
ImageStatusResponse
{
message
ImageStatusResponse
{
// Status of the image.
// Status of the image.
Image
image
=
1
;
Image
image
=
1
;
// Info is extra information of the Image. The key could be abitrary string, and
// Info is extra information of the Image. The key could be a
r
bitrary string, and
// value should be in json format. The information could include anything useful
// value should be in json format. The information could include anything useful
// for debug, e.g. image config for oci image based container runtime.
// for debug, e.g. image config for oci image based container runtime.
// It should only be returned non-empty when Verbose is true.
// It should only be returned non-empty when Verbose is true.
...
@@ -1088,7 +1088,7 @@ message StatusRequest {
...
@@ -1088,7 +1088,7 @@ message StatusRequest {
message
StatusResponse
{
message
StatusResponse
{
// Status of the Runtime.
// Status of the Runtime.
RuntimeStatus
status
=
1
;
RuntimeStatus
status
=
1
;
// Info is extra information of the Runtime. The key could be abitrary string, and
// Info is extra information of the Runtime. The key could be a
r
bitrary string, and
// value should be in json format. The information could include anything useful for
// value should be in json format. The information could include anything useful for
// debug, e.g. plugins used by the container runtime.
// debug, e.g. plugins used by the container runtime.
// It should only be returned non-empty when Verbose is true.
// It should only be returned non-empty when Verbose is true.
...
...
pkg/kubelet/apis/deviceplugin/v1alpha/api.pb.go
View file @
9ca0d32f
...
@@ -106,7 +106,7 @@ func (*Empty) ProtoMessage() {}
...
@@ -106,7 +106,7 @@ func (*Empty) ProtoMessage() {}
func
(
*
Empty
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptorApi
,
[]
int
{
1
}
}
func
(
*
Empty
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptorApi
,
[]
int
{
1
}
}
// ListAndWatch returns a stream of List of Devices
// ListAndWatch returns a stream of List of Devices
// Whenever a Device state change
or a Device disa
pears, ListAndWatch
// Whenever a Device state change
s or a Device disap
pears, ListAndWatch
// returns the new list
// returns the new list
type
ListAndWatchResponse
struct
{
type
ListAndWatchResponse
struct
{
Devices
[]
*
Device
`protobuf:"bytes,1,rep,name=devices" json:"devices,omitempty"`
Devices
[]
*
Device
`protobuf:"bytes,1,rep,name=devices" json:"devices,omitempty"`
...
@@ -388,7 +388,7 @@ var _Registration_serviceDesc = grpc.ServiceDesc{
...
@@ -388,7 +388,7 @@ var _Registration_serviceDesc = grpc.ServiceDesc{
type
DevicePluginClient
interface
{
type
DevicePluginClient
interface
{
// ListAndWatch returns a stream of List of Devices
// ListAndWatch returns a stream of List of Devices
// Whenever a Device state change
or a Device disa
pears, ListAndWatch
// Whenever a Device state change
s or a Device disap
pears, ListAndWatch
// returns the new list
// returns the new list
ListAndWatch
(
ctx
context
.
Context
,
in
*
Empty
,
opts
...
grpc
.
CallOption
)
(
DevicePlugin_ListAndWatchClient
,
error
)
ListAndWatch
(
ctx
context
.
Context
,
in
*
Empty
,
opts
...
grpc
.
CallOption
)
(
DevicePlugin_ListAndWatchClient
,
error
)
// Allocate is called during container creation so that the Device
// Allocate is called during container creation so that the Device
...
@@ -450,7 +450,7 @@ func (c *devicePluginClient) Allocate(ctx context.Context, in *AllocateRequest,
...
@@ -450,7 +450,7 @@ func (c *devicePluginClient) Allocate(ctx context.Context, in *AllocateRequest,
type
DevicePluginServer
interface
{
type
DevicePluginServer
interface
{
// ListAndWatch returns a stream of List of Devices
// ListAndWatch returns a stream of List of Devices
// Whenever a Device state change
or a Device disa
pears, ListAndWatch
// Whenever a Device state change
s or a Device disap
pears, ListAndWatch
// returns the new list
// returns the new list
ListAndWatch
(
*
Empty
,
DevicePlugin_ListAndWatchServer
)
error
ListAndWatch
(
*
Empty
,
DevicePlugin_ListAndWatchServer
)
error
// Allocate is called during container creation so that the Device
// Allocate is called during container creation so that the Device
...
...
pkg/kubelet/apis/deviceplugin/v1alpha/api.proto
View file @
9ca0d32f
...
@@ -40,7 +40,7 @@ message Empty {
...
@@ -40,7 +40,7 @@ message Empty {
// DevicePlugin is the service advertised by Device Plugins
// DevicePlugin is the service advertised by Device Plugins
service
DevicePlugin
{
service
DevicePlugin
{
// ListAndWatch returns a stream of List of Devices
// ListAndWatch returns a stream of List of Devices
// Whenever a Device state change
or a Device disa
pears, ListAndWatch
// Whenever a Device state change
s or a Device disap
pears, ListAndWatch
// returns the new list
// returns the new list
rpc
ListAndWatch
(
Empty
)
returns
(
stream
ListAndWatchResponse
)
{}
rpc
ListAndWatch
(
Empty
)
returns
(
stream
ListAndWatchResponse
)
{}
...
@@ -51,7 +51,7 @@ service DevicePlugin {
...
@@ -51,7 +51,7 @@ service DevicePlugin {
}
}
// ListAndWatch returns a stream of List of Devices
// ListAndWatch returns a stream of List of Devices
// Whenever a Device state change
or a Device disa
pears, ListAndWatch
// Whenever a Device state change
s or a Device disap
pears, ListAndWatch
// returns the new list
// returns the new list
message
ListAndWatchResponse
{
message
ListAndWatchResponse
{
repeated
Device
devices
=
1
;
repeated
Device
devices
=
1
;
...
...
pkg/kubelet/apis/deviceplugin/v1alpha/constants.go
View file @
9ca0d32f
...
@@ -17,9 +17,9 @@ limitations under the License.
...
@@ -17,9 +17,9 @@ limitations under the License.
package
deviceplugin
package
deviceplugin
const
(
const
(
// Healthy means that the device is healty
// Healthy means that the device is healt
h
y
Healthy
=
"Healthy"
Healthy
=
"Healthy"
// Un
H
ealthy means that the device is unhealthy
// Un
h
ealthy means that the device is unhealthy
Unhealthy
=
"Unhealthy"
Unhealthy
=
"Unhealthy"
// Current version of the API supported by kubelet
// Current version of the API supported by kubelet
...
...
pkg/kubelet/cadvisor/testing/cadvisor_fake.go
View file @
9ca0d32f
...
@@ -51,7 +51,7 @@ func (c *Fake) DockerContainer(name string, req *cadvisorapi.ContainerInfoReques
...
@@ -51,7 +51,7 @@ func (c *Fake) DockerContainer(name string, req *cadvisorapi.ContainerInfoReques
}
}
func
(
c
*
Fake
)
MachineInfo
()
(
*
cadvisorapi
.
MachineInfo
,
error
)
{
func
(
c
*
Fake
)
MachineInfo
()
(
*
cadvisorapi
.
MachineInfo
,
error
)
{
// Simulate a ma
tching
with 1 core and 3.75GB of memory.
// Simulate a ma
chine
with 1 core and 3.75GB of memory.
// We set it to non-zero values to make non-zero-capacity machines in Kubemark.
// We set it to non-zero values to make non-zero-capacity machines in Kubemark.
return
&
cadvisorapi
.
MachineInfo
{
return
&
cadvisorapi
.
MachineInfo
{
NumCores
:
1
,
NumCores
:
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