Skip to content

Commit 254bead

Browse files
gregeinfrankjakubdyszkiewicz
authored andcommitted
api: update protobuf definitions to v1.12.2 (envoyproxy#125)
Signed-off-by: Greg Einfrank <[email protected]>
1 parent 046ab2b commit 254bead

File tree

255 files changed

+2931
-606
lines changed

Some content is hidden

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

255 files changed

+2931
-606
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ syntax = "proto3";
22

33
package envoy.admin.v2alpha;
44

5+
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
56
option java_outer_classname = "CertsProto";
67
option java_multiple_files = true;
7-
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
88

99
import "google/protobuf/timestamp.proto";
1010

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ syntax = "proto3";
22

33
package envoy.admin.v2alpha;
44

5+
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
56
option java_outer_classname = "ClustersProto";
67
option java_multiple_files = true;
7-
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
88

99
import "envoy/admin/v2alpha/metrics.proto";
1010
import "envoy/api/v2/core/address.proto";

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

Lines changed: 43 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ syntax = "proto3";
22

33
package envoy.admin.v2alpha;
44

5+
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
56
option java_outer_classname = "ConfigDumpProto";
67
option java_multiple_files = true;
7-
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
88

99
import "envoy/api/v2/auth/cert.proto";
1010
import "envoy/api/v2/cds.proto";
@@ -34,6 +34,17 @@ message ConfigDump {
3434
repeated google.protobuf.Any configs = 1;
3535
}
3636

37+
message UpdateFailureState {
38+
// What the component configuration would have been if the update had succeeded.
39+
google.protobuf.Any failed_configuration = 1;
40+
41+
// Time of the latest failed update attempt.
42+
google.protobuf.Timestamp last_update_attempt = 2;
43+
44+
// Details about the last failed update attempt.
45+
string details = 3;
46+
}
47+
3748
// This message describes the bootstrap configuration that Envoy was started with. This includes
3849
// any CLI overrides that were merged. Bootstrap configuration information can be used to recreate
3950
// the static portions of an Envoy configuration by reusing the output as the bootstrap
@@ -48,19 +59,17 @@ message BootstrapConfigDump {
4859
// Envoy's listener manager fills this message with all currently known listeners. Listener
4960
// configuration information can be used to recreate an Envoy configuration by populating all
5061
// listeners as static listeners or by returning them in a LDS response.
51-
// [#next-free-field: 6]
5262
message ListenersConfigDump {
5363
// Describes a statically loaded listener.
5464
message StaticListener {
5565
// The listener config.
5666
api.v2.Listener listener = 1;
5767

58-
// The timestamp when the Listener was last updated.
68+
// The timestamp when the Listener was last successfully updated.
5969
google.protobuf.Timestamp last_updated = 2;
6070
}
6171

62-
// Describes a dynamically loaded cluster via the LDS API.
63-
message DynamicListener {
72+
message DynamicListenerState {
6473
// This is the per-resource version information. This version is currently taken from the
6574
// :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time
6675
// that the listener was loaded. In the future, discrete per-listener versions may be supported
@@ -70,10 +79,36 @@ message ListenersConfigDump {
7079
// The listener config.
7180
api.v2.Listener listener = 2;
7281

73-
// The timestamp when the Listener was last updated.
82+
// The timestamp when the Listener was last successfully updated.
7483
google.protobuf.Timestamp last_updated = 3;
7584
}
7685

86+
// Describes a dynamically loaded listener via the LDS API.
87+
// [#next-free-field: 6]
88+
message DynamicListener {
89+
// The name or unique id of this listener, pulled from the DynamicListenerState config.
90+
string name = 1;
91+
92+
// The listener state for any active listener by this name.
93+
// These are listeners that are available to service data plane traffic.
94+
DynamicListenerState active_state = 2;
95+
96+
// The listener state for any warming listener by this name.
97+
// These are listeners that are currently undergoing warming in preparation to service data
98+
// plane traffic. Note that if attempting to recreate an Envoy configuration from a
99+
// configuration dump, the warming listeners should generally be discarded.
100+
DynamicListenerState warming_state = 3;
101+
102+
// The listener state for any draining listener by this name.
103+
// These are listeners that are currently undergoing draining in preparation to stop servicing
104+
// data plane traffic. Note that if attempting to recreate an Envoy configuration from a
105+
// configuration dump, the draining listeners should generally be discarded.
106+
DynamicListenerState draining_state = 4;
107+
108+
// Set if the last update failed, cleared after the next successful update.
109+
UpdateFailureState error_state = 5;
110+
}
111+
77112
// This is the :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` in the
78113
// last processed LDS discovery response. If there are only static bootstrap listeners, this field
79114
// will be "".
@@ -82,21 +117,8 @@ message ListenersConfigDump {
82117
// The statically loaded listener configs.
83118
repeated StaticListener static_listeners = 2;
84119

85-
// The dynamically loaded active listeners. These are listeners that are available to service
86-
// data plane traffic.
87-
repeated DynamicListener dynamic_active_listeners = 3;
88-
89-
// The dynamically loaded warming listeners. These are listeners that are currently undergoing
90-
// warming in preparation to service data plane traffic. Note that if attempting to recreate an
91-
// Envoy configuration from a configuration dump, the warming listeners should generally be
92-
// discarded.
93-
repeated DynamicListener dynamic_warming_listeners = 4;
94-
95-
// The dynamically loaded draining listeners. These are listeners that are currently undergoing
96-
// draining in preparation to stop servicing data plane traffic. Note that if attempting to
97-
// recreate an Envoy configuration from a configuration dump, the draining listeners should
98-
// generally be discarded.
99-
repeated DynamicListener dynamic_draining_listeners = 5;
120+
// State for any warming, active, or draining listeners.
121+
repeated DynamicListener dynamic_listeners = 3;
100122
}
101123

102124
// Envoy's cluster manager fills this message with all currently known clusters. Cluster

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ syntax = "proto3";
22

33
package envoy.admin.v2alpha;
44

5+
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
56
option java_outer_classname = "ListenersProto";
67
option java_multiple_files = true;
7-
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
88

99
import "envoy/api/v2/core/address.proto";
1010

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ syntax = "proto3";
22

33
package envoy.admin.v2alpha;
44

5+
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
56
option java_outer_classname = "MemoryProto";
67
option java_multiple_files = true;
7-
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
88

99
// [#protodoc-title: Memory]
1010

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ syntax = "proto3";
22

33
package envoy.admin.v2alpha;
44

5+
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
56
option java_outer_classname = "MetricsProto";
67
option java_multiple_files = true;
7-
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
88

99
// [#protodoc-title: Metrics]
1010

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ syntax = "proto3";
22

33
package envoy.admin.v2alpha;
44

5+
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
56
option java_outer_classname = "MutexStatsProto";
67
option java_multiple_files = true;
7-
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
88

99
// [#protodoc-title: MutexStats]
1010

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ syntax = "proto3";
22

33
package envoy.admin.v2alpha;
44

5+
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
56
option java_outer_classname = "ServerInfoProto";
67
option java_multiple_files = true;
7-
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
88

99
import "google/protobuf/duration.proto";
1010

@@ -47,7 +47,7 @@ message ServerInfo {
4747
CommandLineOptions command_line_options = 6;
4848
}
4949

50-
// [#next-free-field: 27]
50+
// [#next-free-field: 28]
5151
message CommandLineOptions {
5252
enum IpVersion {
5353
v4 = 0;
@@ -100,6 +100,9 @@ message CommandLineOptions {
100100
// See :option:`--log-format` for details.
101101
string log_format = 10;
102102

103+
// See :option:`--log-format-escaped` for details.
104+
bool log_format_escaped = 27;
105+
103106
// See :option:`--log-path` for details.
104107
string log_path = 11;
105108

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ syntax = "proto3";
22

33
package envoy.admin.v2alpha;
44

5+
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
56
option java_outer_classname = "TapProto";
67
option java_multiple_files = true;
7-
option java_package = "io.envoyproxy.envoy.admin.v2alpha";
88

99
import "envoy/service/tap/v2alpha/common.proto";
1010

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,29 @@ syntax = "proto3";
22

33
package envoy.admin.v3alpha;
44

5+
option java_package = "io.envoyproxy.envoy.admin.v3alpha";
56
option java_outer_classname = "CertsProto";
67
option java_multiple_files = true;
7-
option java_package = "io.envoyproxy.envoy.admin.v3alpha";
88

99
import "google/protobuf/timestamp.proto";
1010

11+
import "udpa/annotations/versioning.proto";
12+
1113
// [#protodoc-title: Certificates]
1214

1315
// Proto representation of certificate details. Admin endpoint uses this wrapper for `/certs` to
1416
// display certificate information. See :ref:`/certs <operations_admin_interface_certs>` for more
1517
// information.
1618
message Certificates {
19+
option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.Certificates";
20+
1721
// List of certificates known to an Envoy.
1822
repeated Certificate certificates = 1;
1923
}
2024

2125
message Certificate {
26+
option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.Certificate";
27+
2228
// Details of CA certificate.
2329
repeated CertificateDetails ca_cert = 1;
2430

@@ -28,6 +34,9 @@ message Certificate {
2834

2935
// [#next-free-field: 7]
3036
message CertificateDetails {
37+
option (udpa.annotations.versioning).previous_message_type =
38+
"envoy.admin.v2alpha.CertificateDetails";
39+
3140
// Path of the certificate.
3241
string path = 1;
3342

@@ -48,6 +57,9 @@ message CertificateDetails {
4857
}
4958

5059
message SubjectAlternateName {
60+
option (udpa.annotations.versioning).previous_message_type =
61+
"envoy.admin.v2alpha.SubjectAlternateName";
62+
5163
// Subject Alternate Name.
5264
oneof name {
5365
string dns = 1;

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,33 @@ syntax = "proto3";
22

33
package envoy.admin.v3alpha;
44

5+
option java_package = "io.envoyproxy.envoy.admin.v3alpha";
56
option java_outer_classname = "ClustersProto";
67
option java_multiple_files = true;
7-
option java_package = "io.envoyproxy.envoy.admin.v3alpha";
88

99
import "envoy/admin/v3alpha/metrics.proto";
1010
import "envoy/api/v3alpha/core/address.proto";
1111
import "envoy/api/v3alpha/core/health_check.proto";
1212
import "envoy/type/v3alpha/percent.proto";
1313

14+
import "udpa/annotations/versioning.proto";
15+
1416
// [#protodoc-title: Clusters]
1517

1618
// Admin endpoint uses this wrapper for `/clusters` to display cluster status information.
1719
// See :ref:`/clusters <operations_admin_interface_clusters>` for more information.
1820
message Clusters {
21+
option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.Clusters";
22+
1923
// Mapping from cluster name to each cluster's status.
2024
repeated ClusterStatus cluster_statuses = 1;
2125
}
2226

2327
// Details an individual cluster's current status.
2428
// [#next-free-field: 6]
2529
message ClusterStatus {
30+
option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.ClusterStatus";
31+
2632
// Name of the cluster.
2733
string name = 1;
2834

@@ -72,6 +78,8 @@ message ClusterStatus {
7278
// Current state of a particular host.
7379
// [#next-free-field: 9]
7480
message HostStatus {
81+
option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.HostStatus";
82+
7583
// Address of this host.
7684
api.v3alpha.core.Address address = 1;
7785

@@ -123,6 +131,9 @@ message HostStatus {
123131
// Health status for a host.
124132
// [#next-free-field: 7]
125133
message HostHealthStatus {
134+
option (udpa.annotations.versioning).previous_message_type =
135+
"envoy.admin.v2alpha.HostHealthStatus";
136+
126137
// The host is currently failing active health checks.
127138
bool failed_active_health_check = 1;
128139

0 commit comments

Comments
 (0)