sandbox: add update api for controller

Signed-off-by: Abel Feng <fshb1988@gmail.com>
This commit is contained in:
Abel Feng
2024-02-28 10:39:57 +08:00
committed by f00589305
parent e49d3fd1bc
commit 15887d7efc
20 changed files with 1216 additions and 752 deletions

View File

@@ -5419,6 +5419,14 @@ file {
type_name: ".containerd.services.sandbox.v1.ControllerCreateRequest.AnnotationsEntry"
json_name: "annotations"
}
field {
name: "sandbox"
number: 6
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".containerd.types.Sandbox"
json_name: "sandbox"
}
field {
name: "sandboxer"
number: 10
@@ -5793,6 +5801,41 @@ file {
json_name: "metrics"
}
}
message_type {
name: "ControllerUpdateRequest"
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: "sandbox"
number: 3
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".containerd.types.Sandbox"
json_name: "sandbox"
}
field {
name: "fields"
number: 4
label: LABEL_REPEATED
type: TYPE_STRING
json_name: "fields"
}
}
message_type {
name: "ControllerUpdateResponse"
}
service {
name: "Store"
method {
@@ -5863,6 +5906,11 @@ file {
input_type: ".containerd.services.sandbox.v1.ControllerMetricsRequest"
output_type: ".containerd.services.sandbox.v1.ControllerMetricsResponse"
}
method {
name: "Update"
input_type: ".containerd.services.sandbox.v1.ControllerUpdateRequest"
output_type: ".containerd.services.sandbox.v1.ControllerUpdateResponse"
}
}
options {
go_package: "github.com/containerd/containerd/api/services/sandbox/v1;sandbox"