Skip to content

Commit

Permalink
sandbox: add updateresource for sandbox controller
Browse files Browse the repository at this point in the history
Signed-off-by: Abel Feng <fshb1988@gmail.com>
  • Loading branch information
abel-von committed May 9, 2024
1 parent b168147 commit 410e0ae
Show file tree
Hide file tree
Showing 24 changed files with 1,665 additions and 684 deletions.
148 changes: 148 additions & 0 deletions api/next.pb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5135,6 +5135,7 @@ file {
package: "containerd.types"
dependency: "google/protobuf/any.proto"
dependency: "google/protobuf/timestamp.proto"
dependency: "github.com/containerd/containerd/api/types/mount.proto"
message_type {
name: "Sandbox"
field {
Expand Down Expand Up @@ -5259,6 +5260,104 @@ file {
}
}
}
message_type {
name: "TaskResource"
field {
name: "task_id"
number: 1
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "taskId"
}
field {
name: "exec_id"
number: 2
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "execId"
}
field {
name: "spec"
number: 3
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Any"
json_name: "spec"
}
field {
name: "rootfs"
number: 4
label: LABEL_REPEATED
type: TYPE_MESSAGE
type_name: ".containerd.types.Mount"
json_name: "rootfs"
}
field {
name: "stdin"
number: 5
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "stdin"
}
field {
name: "stdout"
number: 6
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "stdout"
}
field {
name: "stderr"
number: 7
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "stderr"
}
field {
name: "extensions"
number: 8
label: LABEL_REPEATED
type: TYPE_MESSAGE
type_name: ".containerd.types.TaskResource.ExtensionsEntry"
json_name: "extensions"
}
nested_type {
name: "ExtensionsEntry"
field {
name: "key"
number: 1
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "key"
}
field {
name: "value"
number: 2
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Any"
json_name: "value"
}
options {
map_entry: true
}
}
}
enum_type {
name: "ResourceOp"
value {
name: "ADD"
number: 0
}
value {
name: "REMOVE"
number: 1
}
value {
name: "UPDATE"
number: 2
}
}
options {
go_package: "github.com/containerd/containerd/api/types;types"
}
Expand Down Expand Up @@ -5793,6 +5892,50 @@ file {
json_name: "metrics"
}
}
message_type {
name: "ControllerUpdateResourceRequest"
field {
name: "sandbox_id"
number: 1
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "sandboxId"
}
field {
name: "sandboxer"
number: 2
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "sandboxer"
}
field {
name: "op"
number: 3
label: LABEL_OPTIONAL
type: TYPE_ENUM
type_name: ".containerd.types.ResourceOp"
json_name: "op"
}
field {
name: "resource"
number: 4
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".containerd.types.TaskResource"
json_name: "resource"
}
field {
name: "extra"
number: 5
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Any"
json_name: "extra"
}
}
message_type {
name: "ControllerUpdateResourceResponse"
}
service {
name: "Store"
method {
Expand Down Expand Up @@ -5863,6 +6006,11 @@ file {
input_type: ".containerd.services.sandbox.v1.ControllerMetricsRequest"
output_type: ".containerd.services.sandbox.v1.ControllerMetricsResponse"
}
method {
name: "UpdateResource"
input_type: ".containerd.services.sandbox.v1.ControllerUpdateResourceRequest"
output_type: ".containerd.services.sandbox.v1.ControllerUpdateResourceResponse"
}
}
options {
go_package: "github.com/containerd/containerd/api/services/sandbox/v1;sandbox"
Expand Down

0 comments on commit 410e0ae

Please sign in to comment.