config: removing the legacy rest API (#5522)

Risk Level: Medium (still unclear who might be using it)
Testing: n/a
Docs Changes: v1 docs already removed
Release Notes: inline
Fixes #5378

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>

Mirrored from https://github.com/envoyproxy/envoy @ 47dbc4f506274ad7dac9226fd947c01b9d243923
pull/620/head
data-plane-api(CircleCI) 6 years ago
parent f332ff4d26
commit 90439ad743
  1. 7
      envoy/api/v2/core/config_source.proto

@ -21,8 +21,9 @@ option (gogoproto.equal_all) = true;
message ApiConfigSource {
// APIs may be fetched via either REST or gRPC.
enum ApiType {
// REST-JSON legacy corresponds to the v1 API.
REST_LEGACY = 0 [deprecated = true];
// Ideally this would be 'reserved 0' but one can't reserve the default
// value. Instead we throw an exception if this is ever used.
UNSUPPORTED_REST_LEGACY = 0 [deprecated = true];
// REST-JSON v2 API. The `canonical JSON encoding
// <https://developers.google.com/protocol-buffers/docs/proto3#json>`_ for
// the v2 protos is used.
@ -31,7 +32,7 @@ message ApiConfigSource {
GRPC = 2;
}
ApiType api_type = 1 [(validate.rules).enum.defined_only = true];
// Cluster names should be used only with REST_LEGACY/REST. If > 1
// Cluster names should be used only with REST. If > 1
// cluster is defined, clusters will be cycled through if any kind of failure
// occurs.
//

Loading…
Cancel
Save