http health check: configurable expected HTTP response codes (#5901)

Signed-off-by: Bartosz Borkowski <bartebor@wp.pl>

Mirrored from https://github.com/envoyproxy/envoy @ 1109a4c87eb4d47643ddb433890c663a651b739e
pull/620/head
data-plane-api(CircleCI) 6 years ago
parent fd823fb5a3
commit f885a16f73
  1. 10
      envoy/api/v2/core/BUILD
  2. 8
      envoy/api/v2/core/health_check.proto

@ -54,13 +54,19 @@ api_proto_library_internal(
visibility = [
":friends",
],
deps = [":base"],
deps = [
":base",
"//envoy/type:range",
],
)
api_go_proto_library(
name = "health_check",
proto = ":health_check",
deps = [":base_go_proto"],
deps = [
":base_go_proto",
"//envoy/type:range_go_proto",
],
)
api_proto_library_internal(

@ -7,6 +7,7 @@ option java_multiple_files = true;
option java_package = "io.envoyproxy.envoy.api.v2.core";
import "envoy/api/v2/core/base.proto";
import "envoy/type/range.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
@ -84,7 +85,7 @@ message HealthCheck {
}
}
// [#comment:next free field: 9]
// [#comment:next free field: 10]
message HttpHealthCheck {
// The value of the host header in the HTTP health check request. If
// left empty (default value), the name of the cluster this health check is associated
@ -119,6 +120,11 @@ message HealthCheck {
// If set, health checks will be made using http/2.
bool use_http2 = 7;
// Specifies a list of HTTP response statuses considered healthy. If provided, replaces default
// 200-only policy - 200 must be included explicitly as needed. Ranges follow half-open
// semantics of :ref:`Int64Range <envoy_api_msg_type.Int64Range>`.
repeated envoy.type.Int64Range expected_statuses = 9;
}
message TcpHealthCheck {

Loading…
Cancel
Save