Skip to content

Commit e296c8d

Browse files
nandu-vinodanSnow Pettersen
authored andcommitted
api: update envoyproxy/envoy@f6cf957 [v1.12] (#119)
Signed-off-by: Nandu Vinodan <[email protected]>
1 parent 4842e82 commit e296c8d

File tree

236 files changed

+6175
-5105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+6175
-5105
lines changed

api/src/main/proto/envoy/admin/v2alpha/certs.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ message Certificates {
1919
}
2020

2121
message Certificate {
22-
2322
// Details of CA certificate.
2423
repeated CertificateDetails ca_cert = 1;
2524

2625
// Details of Certificate Chain
2726
repeated CertificateDetails cert_chain = 2;
2827
}
2928

29+
// [#next-free-field: 7]
3030
message CertificateDetails {
3131
// Path of the certificate.
3232
string path = 1;
@@ -48,10 +48,10 @@ message CertificateDetails {
4848
}
4949

5050
message SubjectAlternateName {
51-
5251
// Subject Alternate Name.
5352
oneof name {
5453
string dns = 1;
54+
5555
string uri = 2;
5656
}
5757
}

api/src/main/proto/envoy/admin/v2alpha/clusters.proto

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ message Clusters {
2121
}
2222

2323
// Details an individual cluster's current status.
24+
// [#next-free-field: 6]
2425
message ClusterStatus {
2526
// Name of the cluster.
2627
string name = 1;
@@ -45,14 +46,14 @@ message ClusterStatus {
4546
// 2. The threshold is computed to be < 0 because a negative value implies that there was no
4647
// threshold for that interval.
4748
// 3. Outlier detection is not enabled for this cluster.
48-
envoy.type.Percent success_rate_ejection_threshold = 3;
49+
type.Percent success_rate_ejection_threshold = 3;
4950

5051
// Mapping from host address to the host's current status.
5152
repeated HostStatus host_statuses = 4;
5253

5354
// The success rate threshold used in the last interval when only locally originated failures were
5455
// taken into account and externally originated errors were treated as success.
55-
// This field should be interpretted only when
56+
// This field should be interpreted only when
5657
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
5758
// is *true*. The threshold is used to eject hosts based on their success rate.
5859
// See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
@@ -65,13 +66,14 @@ message ClusterStatus {
6566
// 2. The threshold is computed to be < 0 because a negative value implies that there was no
6667
// threshold for that interval.
6768
// 3. Outlier detection is not enabled for this cluster.
68-
envoy.type.Percent local_origin_success_rate_ejection_threshold = 5;
69+
type.Percent local_origin_success_rate_ejection_threshold = 5;
6970
}
7071

7172
// Current state of a particular host.
73+
// [#next-free-field: 9]
7274
message HostStatus {
7375
// Address of this host.
74-
envoy.api.v2.core.Address address = 1;
76+
api.v2.core.Address address = 1;
7577

7678
// List of stats specific to this host.
7779
repeated SimpleMetric stats = 2;
@@ -92,7 +94,7 @@ message HostStatus {
9294
// Note: the message will not be present if host did not have enough request volume to calculate
9395
// success rate or the cluster did not have enough hosts to run through success rate outlier
9496
// ejection.
95-
envoy.type.Percent success_rate = 4;
97+
type.Percent success_rate = 4;
9698

9799
// The host's weight. If not configured, the value defaults to 1.
98100
uint32 weight = 5;
@@ -106,7 +108,7 @@ message HostStatus {
106108
// Request success rate for this host over the last calculated
107109
// interval when only locally originated errors are taken into account and externally originated
108110
// errors were treated as success.
109-
// This field should be interpretted only when
111+
// This field should be interpreted only when
110112
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_cluster.OutlierDetection.split_external_local_origin_errors>`
111113
// is *true*.
112114
// See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
@@ -115,10 +117,11 @@ message HostStatus {
115117
// Note: the message will not be present if host did not have enough request volume to calculate
116118
// success rate or the cluster did not have enough hosts to run through success rate outlier
117119
// ejection.
118-
envoy.type.Percent local_origin_success_rate = 8;
120+
type.Percent local_origin_success_rate = 8;
119121
}
120122

121123
// Health status for a host.
124+
// [#next-free-field: 7]
122125
message HostHealthStatus {
123126
// The host is currently failing active health checks.
124127
bool failed_active_health_check = 1;
@@ -139,5 +142,5 @@ message HostHealthStatus {
139142
// Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
140143
// here.
141144
// TODO(mrice32): pipe through remaining EDS health status possibilities.
142-
envoy.api.v2.core.HealthStatus eds_health_status = 3;
145+
api.v2.core.HealthStatus eds_health_status = 3;
143146
}

api/src/main/proto/envoy/admin/v2alpha/config_dump.proto

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ message ConfigDump {
3939
// the static portions of an Envoy configuration by reusing the output as the bootstrap
4040
// configuration for another Envoy.
4141
message BootstrapConfigDump {
42-
envoy.config.bootstrap.v2.Bootstrap bootstrap = 1;
42+
config.bootstrap.v2.Bootstrap bootstrap = 1;
4343

4444
// The timestamp when the BootstrapConfig was last updated.
4545
google.protobuf.Timestamp last_updated = 2;
@@ -48,16 +48,12 @@ message BootstrapConfigDump {
4848
// Envoy's listener manager fills this message with all currently known listeners. Listener
4949
// configuration information can be used to recreate an Envoy configuration by populating all
5050
// listeners as static listeners or by returning them in a LDS response.
51+
// [#next-free-field: 6]
5152
message ListenersConfigDump {
52-
// This is the :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` in the
53-
// last processed LDS discovery response. If there are only static bootstrap listeners, this field
54-
// will be "".
55-
string version_info = 1;
56-
5753
// Describes a statically loaded listener.
5854
message StaticListener {
5955
// The listener config.
60-
envoy.api.v2.Listener listener = 1;
56+
api.v2.Listener listener = 1;
6157

6258
// The timestamp when the Listener was last updated.
6359
google.protobuf.Timestamp last_updated = 2;
@@ -72,12 +68,17 @@ message ListenersConfigDump {
7268
string version_info = 1;
7369

7470
// The listener config.
75-
envoy.api.v2.Listener listener = 2;
71+
api.v2.Listener listener = 2;
7672

7773
// The timestamp when the Listener was last updated.
7874
google.protobuf.Timestamp last_updated = 3;
7975
}
8076

77+
// This is the :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` in the
78+
// last processed LDS discovery response. If there are only static bootstrap listeners, this field
79+
// will be "".
80+
string version_info = 1;
81+
8182
// The statically loaded listener configs.
8283
repeated StaticListener static_listeners = 2;
8384

@@ -102,15 +103,10 @@ message ListenersConfigDump {
102103
// configuration information can be used to recreate an Envoy configuration by populating all
103104
// clusters as static clusters or by returning them in a CDS response.
104105
message ClustersConfigDump {
105-
// This is the :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` in the
106-
// last processed CDS discovery response. If there are only static bootstrap clusters, this field
107-
// will be "".
108-
string version_info = 1;
109-
110106
// Describes a statically loaded cluster.
111107
message StaticCluster {
112108
// The cluster config.
113-
envoy.api.v2.Cluster cluster = 1;
109+
api.v2.Cluster cluster = 1;
114110

115111
// The timestamp when the Cluster was last updated.
116112
google.protobuf.Timestamp last_updated = 2;
@@ -125,12 +121,17 @@ message ClustersConfigDump {
125121
string version_info = 1;
126122

127123
// The cluster config.
128-
envoy.api.v2.Cluster cluster = 2;
124+
api.v2.Cluster cluster = 2;
129125

130126
// The timestamp when the Cluster was last updated.
131127
google.protobuf.Timestamp last_updated = 3;
132128
}
133129

130+
// This is the :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` in the
131+
// last processed CDS discovery response. If there are only static bootstrap clusters, this field
132+
// will be "".
133+
string version_info = 1;
134+
134135
// The statically loaded cluster configs.
135136
repeated StaticCluster static_clusters = 2;
136137

@@ -153,7 +154,7 @@ message ClustersConfigDump {
153154
message RoutesConfigDump {
154155
message StaticRouteConfig {
155156
// The route config.
156-
envoy.api.v2.RouteConfiguration route_config = 1;
157+
api.v2.RouteConfiguration route_config = 1;
157158

158159
// The timestamp when the Route was last updated.
159160
google.protobuf.Timestamp last_updated = 2;
@@ -166,7 +167,7 @@ message RoutesConfigDump {
166167
string version_info = 1;
167168

168169
// The route config.
169-
envoy.api.v2.RouteConfiguration route_config = 2;
170+
api.v2.RouteConfiguration route_config = 2;
170171

171172
// The timestamp when the Route was last updated.
172173
google.protobuf.Timestamp last_updated = 3;
@@ -189,7 +190,7 @@ message ScopedRoutesConfigDump {
189190
string name = 1;
190191

191192
// The scoped route configurations.
192-
repeated envoy.api.v2.ScopedRouteConfiguration scoped_route_configs = 2;
193+
repeated api.v2.ScopedRouteConfiguration scoped_route_configs = 2;
193194

194195
// The timestamp when the scoped route config set was last updated.
195196
google.protobuf.Timestamp last_updated = 3;
@@ -205,7 +206,7 @@ message ScopedRoutesConfigDump {
205206
string version_info = 2;
206207

207208
// The scoped route configurations.
208-
repeated envoy.api.v2.ScopedRouteConfiguration scoped_route_configs = 3;
209+
repeated api.v2.ScopedRouteConfiguration scoped_route_configs = 3;
209210

210211
// The timestamp when the scoped route config set was last updated.
211212
google.protobuf.Timestamp last_updated = 4;
@@ -234,7 +235,7 @@ message SecretsConfigDump {
234235
// The actual secret information.
235236
// Security sensitive information is redacted (replaced with "[redacted]") for
236237
// private keys and passwords in TLS certificates.
237-
envoy.api.v2.auth.Secret secret = 4;
238+
api.v2.auth.Secret secret = 4;
238239
}
239240

240241
// StaticSecret specifies statically loaded secret in bootstrap.
@@ -248,7 +249,7 @@ message SecretsConfigDump {
248249
// The actual secret information.
249250
// Security sensitive information is redacted (replaced with "[redacted]") for
250251
// private keys and passwords in TLS certificates.
251-
envoy.api.v2.auth.Secret secret = 3;
252+
api.v2.auth.Secret secret = 3;
252253
}
253254

254255
// The statically loaded secrets.

api/src/main/proto/envoy/admin/v2alpha/listeners.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ message ListenerStatus {
2424

2525
// The actual local address that the listener is listening on. If a listener was configured
2626
// to listen on port 0, then this address has the port that was allocated by the OS.
27-
envoy.api.v2.core.Address local_address = 2;
27+
api.v2.core.Address local_address = 2;
2828
}

api/src/main/proto/envoy/admin/v2alpha/memory.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ option java_package = "io.envoyproxy.envoy.admin.v2alpha";
1111
// Proto representation of the internal memory consumption of an Envoy instance. These represent
1212
// values extracted from an internal TCMalloc instance. For more information, see the section of the
1313
// docs entitled ["Generic Tcmalloc Status"](https://gperftools.github.io/gperftools/tcmalloc.html).
14+
// [#next-free-field: 6]
1415
message Memory {
15-
1616
// The number of bytes allocated by the heap for Envoy. This is an alias for
1717
// `generic.current_allocated_bytes`.
1818
uint64 allocated = 1;

api/src/main/proto/envoy/admin/v2alpha/mutex_stats.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ option java_package = "io.envoyproxy.envoy.admin.v2alpha";
1616
// correspond to core clock frequency. For more information, see the `CycleClock`
1717
// [docs](https://github.com/abseil/abseil-cpp/blob/master/absl/base/internal/cycleclock.h).
1818
message MutexStats {
19-
2019
// The number of individual mutex contentions which have occurred since startup.
2120
uint64 num_contentions = 1;
2221

api/src/main/proto/envoy/admin/v2alpha/server_info.proto

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,25 @@ import "google/protobuf/duration.proto";
1212

1313
// Proto representation of the value returned by /server_info, containing
1414
// server version/server status information.
15+
// [#next-free-field: 7]
1516
message ServerInfo {
16-
// Server version.
17-
string version = 1;
18-
1917
enum State {
2018
// Server is live and serving traffic.
2119
LIVE = 0;
20+
2221
// Server is draining listeners in response to external health checks failing.
2322
DRAINING = 1;
23+
2424
// Server has not yet completed cluster manager initialization.
2525
PRE_INITIALIZING = 2;
26+
2627
// Server is running the cluster manager initialization callbacks (e.g., RDS).
2728
INITIALIZING = 3;
2829
}
2930

31+
// Server version.
32+
string version = 1;
33+
3034
// State of the server.
3135
State state = 2;
3236

@@ -43,7 +47,26 @@ message ServerInfo {
4347
CommandLineOptions command_line_options = 6;
4448
}
4549

50+
// [#next-free-field: 27]
4651
message CommandLineOptions {
52+
enum IpVersion {
53+
v4 = 0;
54+
v6 = 1;
55+
}
56+
57+
enum Mode {
58+
// Validate configs and then serve traffic normally.
59+
Serve = 0;
60+
61+
// Validate configs and exit.
62+
Validate = 1;
63+
64+
// Completely load and initialize the config, and then exit without running the listener loop.
65+
InitOnly = 2;
66+
}
67+
68+
reserved 12;
69+
4770
// See :option:`--base-id` for details.
4871
uint64 base_id = 1;
4972

@@ -65,11 +88,6 @@ message CommandLineOptions {
6588
// See :option:`--admin-address-path` for details.
6689
string admin_address_path = 6;
6790

68-
enum IpVersion {
69-
v4 = 0;
70-
v6 = 1;
71-
}
72-
7391
// See :option:`--local-address-ip-version` for details.
7492
IpVersion local_address_ip_version = 7;
7593

@@ -85,8 +103,6 @@ message CommandLineOptions {
85103
// See :option:`--log-path` for details.
86104
string log_path = 11;
87105

88-
reserved 12;
89-
90106
// See :option:`--service-cluster` for details.
91107
string service_cluster = 13;
92108

@@ -105,22 +121,12 @@ message CommandLineOptions {
105121
// See :option:`--parent-shutdown-time-s` for details.
106122
google.protobuf.Duration parent_shutdown_time = 18;
107123

108-
enum Mode {
109-
// Validate configs and then serve traffic normally.
110-
Serve = 0;
111-
112-
// Validate configs and exit.
113-
Validate = 1;
114-
115-
// Completely load and initialize the config, and then exit without running the listener loop.
116-
InitOnly = 2;
117-
}
118-
119124
// See :option:`--mode` for details.
120125
Mode mode = 19;
121126

122127
// max_stats and max_obj_name_len are now unused and have no effect.
123128
uint64 max_stats = 20 [deprecated = true];
129+
124130
uint64 max_obj_name_len = 21 [deprecated = true];
125131

126132
// See :option:`--disable-hot-restart` for details.
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
syntax = "proto3";
22

3-
import "envoy/service/tap/v2alpha/common.proto";
4-
import "validate/validate.proto";
5-
63
package envoy.admin.v2alpha;
74

85
option java_outer_classname = "TapProto";
96
option java_multiple_files = true;
107
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
118

9+
import "envoy/service/tap/v2alpha/common.proto";
10+
11+
import "validate/validate.proto";
12+
1213
// The /tap admin request body that is used to configure an active tap session.
1314
message TapRequest {
1415
// The opaque configuration ID used to match the configuration to a loaded extension.
1516
// A tap extension configures a similar opaque ID that is used to match.
16-
string config_id = 1 [(validate.rules).string.min_bytes = 1];
17+
string config_id = 1 [(validate.rules).string = {min_bytes: 1}];
1718

1819
// The tap configuration to load.
19-
service.tap.v2alpha.TapConfig tap_config = 2 [(validate.rules).message.required = true];
20+
service.tap.v2alpha.TapConfig tap_config = 2 [(validate.rules).message = {required: true}];
2021
}

0 commit comments

Comments
 (0)