Skip to content

Commit 9c41989

Browse files
committed
Update whitespace in device plugin api.proto
1 parent 4c853bb commit 9c41989

File tree

1 file changed

+19
-19
lines changed
  • staging/src/k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1

1 file changed

+19
-19
lines changed

staging/src/k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1/api.proto

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ service Registration {
2525
}
2626

2727
message DevicePluginOptions {
28-
// Indicates if PreStartContainer call is required before each container start
28+
// Indicates if PreStartContainer call is required before each container start
2929
bool pre_start_required = 1;
3030
}
3131

@@ -37,8 +37,8 @@ message RegisterRequest {
3737
string endpoint = 2;
3838
// Schedulable resource name. As of now it's expected to be a DNS Label
3939
string resource_name = 3;
40-
// Options to be communicated with Device Manager
41-
DevicePluginOptions options = 4;
40+
// Options to be communicated with Device Manager
41+
DevicePluginOptions options = 4;
4242
}
4343

4444
message Empty {
@@ -47,7 +47,7 @@ message Empty {
4747
// DevicePlugin is the service advertised by Device Plugins
4848
service DevicePlugin {
4949
// GetDevicePluginOptions returns options to be communicated with Device
50-
// Manager
50+
// Manager
5151
rpc GetDevicePluginOptions(Empty) returns (DevicePluginOptions) {}
5252

5353
// ListAndWatch returns a stream of List of Devices
@@ -60,9 +60,9 @@ service DevicePlugin {
6060
// of the steps to make the Device available in the container
6161
rpc Allocate(AllocateRequest) returns (AllocateResponse) {}
6262

63-
// PreStartContainer is called, if indicated by Device Plugin during registeration phase,
64-
// before each container start. Device plugin can run device specific operations
65-
// such as resetting the device before making devices available to the container
63+
// PreStartContainer is called, if indicated by Device Plugin during registeration phase,
64+
// before each container start. Device plugin can run device specific operations
65+
// such as resetting the device before making devices available to the container
6666
rpc PreStartContainer(PreStartContainerRequest) returns (PreStartContainerResponse) {}
6767
}
6868

@@ -78,7 +78,7 @@ message TopologyInfo {
7878
}
7979

8080
message NUMANode {
81-
int64 ID = 1;
81+
int64 ID = 1;
8282
}
8383

8484
/* E.g:
@@ -87,7 +87,7 @@ message NUMANode {
8787
* Health: "Healthy",
8888
* Topology:
8989
* Node:
90-
ID: 1
90+
* ID: 1
9191
*} */
9292
message Device {
9393
// A unique ID assigned by the device plugin used
@@ -105,7 +105,7 @@ message Device {
105105
// - PreStartContainer allows Device Plugin to run device specific operations on
106106
// the Devices requested
107107
message PreStartContainerRequest {
108-
repeated string devicesIDs = 1;
108+
repeated string devicesIDs = 1;
109109
}
110110

111111
// PreStartContainerResponse will be send by plugin in response to PreStartContainerRequest
@@ -162,13 +162,13 @@ message Mount {
162162

163163
// DeviceSpec specifies a host device to mount into a container.
164164
message DeviceSpec {
165-
// Path of the device within the container.
166-
string container_path = 1;
167-
// Path of the device on the host.
168-
string host_path = 2;
169-
// Cgroups permissions of the device, candidates are one or more of
170-
// * r - allows container to read from the specified device.
171-
// * w - allows container to write to the specified device.
172-
// * m - allows container to create device files that do not yet exist.
173-
string permissions = 3;
165+
// Path of the device within the container.
166+
string container_path = 1;
167+
// Path of the device on the host.
168+
string host_path = 2;
169+
// Cgroups permissions of the device, candidates are one or more of
170+
// * r - allows container to read from the specified device.
171+
// * w - allows container to write to the specified device.
172+
// * m - allows container to create device files that do not yet exist.
173+
string permissions = 3;
174174
}

0 commit comments

Comments
 (0)