Skip to content

Commit 57c897f

Browse files
committed
api/introspection: deprecation warnings in server
The Server rpc in introspection service is extended to expose deprecation warnings based on observed feature use in containerd. Signed-off-by: Samuel Karp <[email protected]>
1 parent 240733c commit 57c897f

3 files changed

Lines changed: 225 additions & 79 deletions

File tree

api/next.pb.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4344,6 +4344,7 @@ file {
43444344
dependency: "github.com/containerd/containerd/api/types/platform.proto"
43454345
dependency: "google/rpc/status.proto"
43464346
dependency: "google/protobuf/empty.proto"
4347+
dependency: "google/protobuf/timestamp.proto"
43474348
message_type {
43484349
name: "Plugin"
43494350
field {
@@ -4463,6 +4464,39 @@ file {
44634464
type: TYPE_UINT64
44644465
json_name: "pidns"
44654466
}
4467+
field {
4468+
name: "deprecations"
4469+
number: 4
4470+
label: LABEL_REPEATED
4471+
type: TYPE_MESSAGE
4472+
type_name: ".containerd.services.introspection.v1.DeprecationWarning"
4473+
json_name: "deprecations"
4474+
}
4475+
}
4476+
message_type {
4477+
name: "DeprecationWarning"
4478+
field {
4479+
name: "id"
4480+
number: 1
4481+
label: LABEL_OPTIONAL
4482+
type: TYPE_STRING
4483+
json_name: "id"
4484+
}
4485+
field {
4486+
name: "message"
4487+
number: 2
4488+
label: LABEL_OPTIONAL
4489+
type: TYPE_STRING
4490+
json_name: "message"
4491+
}
4492+
field {
4493+
name: "last_occurrence"
4494+
number: 3
4495+
label: LABEL_OPTIONAL
4496+
type: TYPE_MESSAGE
4497+
type_name: ".google.protobuf.Timestamp"
4498+
json_name: "lastOccurrence"
4499+
}
44664500
}
44674501
service {
44684502
name: "Introspection"

0 commit comments

Comments
 (0)