Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions envoy/admin/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
load("//bazel:api_build_system.bzl", "api_proto_library")

licenses(["notice"]) # Apache 2

api_proto_library(
name = "admin",
srcs = ["admin.proto"],
visibility = ["//visibility:public"],
deps = [
"//envoy/api/v2:rds",
],
)
17 changes: 17 additions & 0 deletions envoy/admin/admin.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
syntax = "proto3";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be envoy/admin/v2/admin.proto as per versioning elsewhere in data-plane-api.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kk. So basically the whole repo is v2?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point, yep. In the future we may have independent subtrees evolve at different rates, but this is probably medium-long term.


package envoy.admin;

import "google/protobuf/any.proto";
import "envoy/api/v2/rds.proto";

import "gogoproto/gogo.proto";

message ConfigDump {
map<string, google.protobuf.Any> configs = 1 [(gogoproto.nullable) = false];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add comments? It's hard to know what this very general type is representing.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. In general, we should add full comments here for which admin endpoints these map to, how they are used, etc. It's not completely clear to me whether we want strongly typed output (maybe we do) vs. something general like this type.

}

message RouteConfigDump {
repeated envoy.api.v2.RouteConfiguration static_route_configs = 1 [(gogoproto.nullable) = false];
repeated envoy.api.v2.RouteConfiguration dynamic_route_configs = 2 [(gogoproto.nullable) = false];
}
1 change: 1 addition & 0 deletions envoy/api/v2/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ licenses(["notice"]) # Apache 2
package_group(
name = "friends",
packages = [
"//envoy/admin/...",
"//envoy/api/v2",
"//envoy/config/...",
"//envoy/service/...",
Expand Down