add support for h2c in h2 ping health checks
This commit is contained in:
parent
6b0b6a7445
commit
ed4ca3db49
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:feature
|
||||||
|
health-checks: add support for h2c in http2 ping health checks
|
||||||
|
```
|
|
@ -2706,9 +2706,11 @@ func (a *Agent) addCheck(check *structs.HealthCheck, chkType *structs.CheckType,
|
||||||
)
|
)
|
||||||
chkType.Interval = checks.MinInterval
|
chkType.Interval = checks.MinInterval
|
||||||
}
|
}
|
||||||
|
var tlsClientConfig *tls.Config
|
||||||
tlsClientConfig := a.tlsConfigurator.OutgoingTLSConfigForCheck(chkType.TLSSkipVerify, chkType.TLSServerName)
|
if !chkType.H2PINGDisableTLS {
|
||||||
tlsClientConfig.NextProtos = []string{http2.NextProtoTLS}
|
tlsClientConfig = a.tlsConfigurator.OutgoingTLSConfigForCheck(chkType.TLSSkipVerify, chkType.TLSServerName)
|
||||||
|
tlsClientConfig.NextProtos = []string{http2.NextProtoTLS}
|
||||||
|
}
|
||||||
|
|
||||||
h2ping := &checks.CheckH2PING{
|
h2ping := &checks.CheckH2PING{
|
||||||
CheckID: cid,
|
CheckID: cid,
|
||||||
|
|
|
@ -855,6 +855,32 @@ func TestAgent_AddServiceWithH2PINGCheck(t *testing.T) {
|
||||||
requireCheckExists(t, a, "test-h2ping-check")
|
requireCheckExists(t, a, "test-h2ping-check")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestAgent_AddServiceWithH2CPINGCheck(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
a := NewTestAgent(t, "")
|
||||||
|
defer a.Shutdown()
|
||||||
|
check := []*structs.CheckType{
|
||||||
|
{
|
||||||
|
CheckID: "test-h2cping-check",
|
||||||
|
Name: "test-h2cping-check",
|
||||||
|
H2PING: "localhost:12345",
|
||||||
|
TLSSkipVerify: true,
|
||||||
|
Interval: 10 * time.Second,
|
||||||
|
H2PINGDisableTLS: true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
nodeService := &structs.NodeService{
|
||||||
|
ID: "test-h2cping-check-service",
|
||||||
|
Service: "test-h2cping-check-service",
|
||||||
|
}
|
||||||
|
err := a.addServiceFromSource(nodeService, check, false, "", ConfigSourceLocal)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("Error registering service: %v", err)
|
||||||
|
}
|
||||||
|
requireCheckExists(t, a, "test-h2cping-check")
|
||||||
|
}
|
||||||
|
|
||||||
func TestAgent_AddServiceNoExec(t *testing.T) {
|
func TestAgent_AddServiceNoExec(t *testing.T) {
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
t.Skip("too slow for testing.Short")
|
t.Skip("too slow for testing.Short")
|
||||||
|
|
|
@ -535,11 +535,25 @@ func shutdownHTTP2ClientConn(clientConn *http2.ClientConn, timeout time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *CheckH2PING) check() {
|
func (c *CheckH2PING) check() {
|
||||||
t := &http2.Transport{
|
t := &http2.Transport{}
|
||||||
TLSClientConfig: c.TLSClientConfig,
|
var dialFunc func(ctx context.Context, network, address string, tlscfg *tls.Config) (net.Conn, error)
|
||||||
|
if c.TLSClientConfig != nil {
|
||||||
|
t.TLSClientConfig = c.TLSClientConfig
|
||||||
|
dialFunc = func(ctx context.Context, network, address string, tlscfg *tls.Config) (net.Conn, error) {
|
||||||
|
dialer := &tls.Dialer{Config: tlscfg}
|
||||||
|
return dialer.DialContext(ctx, network, address)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
t.AllowHTTP = true
|
||||||
|
dialFunc = func(ctx context.Context, network, address string, tlscfg *tls.Config) (net.Conn, error) {
|
||||||
|
dialer := &net.Dialer{}
|
||||||
|
return dialer.DialContext(ctx, network, address)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
target := c.H2PING
|
target := c.H2PING
|
||||||
conn, err := tls.Dial("tcp", target, c.TLSClientConfig)
|
ctx, cancel := context.WithTimeout(context.Background(), c.Timeout)
|
||||||
|
defer cancel()
|
||||||
|
conn, err := dialFunc(ctx, "tcp", target, c.TLSClientConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
message := fmt.Sprintf("Failed to dial to %s: %s", target, err)
|
message := fmt.Sprintf("Failed to dial to %s: %s", target, err)
|
||||||
c.StatusHandler.updateCheck(c.CheckID, api.HealthCritical, message)
|
c.StatusHandler.updateCheck(c.CheckID, api.HealthCritical, message)
|
||||||
|
@ -553,8 +567,6 @@ func (c *CheckH2PING) check() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer shutdownHTTP2ClientConn(clientConn, c.Timeout, c.CheckID.String(), c.Logger)
|
defer shutdownHTTP2ClientConn(clientConn, c.Timeout, c.CheckID.String(), c.Logger)
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), c.Timeout)
|
|
||||||
defer cancel()
|
|
||||||
err = clientConn.Ping(ctx)
|
err = clientConn.Ping(ctx)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
c.StatusHandler.updateCheck(c.CheckID, api.HealthPassing, "HTTP2 ping was successful")
|
c.StatusHandler.updateCheck(c.CheckID, api.HealthPassing, "HTTP2 ping was successful")
|
||||||
|
|
|
@ -21,6 +21,7 @@ import (
|
||||||
"github.com/hashicorp/go-uuid"
|
"github.com/hashicorp/go-uuid"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
http2 "golang.org/x/net/http2"
|
http2 "golang.org/x/net/http2"
|
||||||
|
"golang.org/x/net/http2/h2c"
|
||||||
)
|
)
|
||||||
|
|
||||||
func uniqueID() string {
|
func uniqueID() string {
|
||||||
|
@ -1256,6 +1257,64 @@ func TestCheckH2PINGInvalidListener(t *testing.T) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestCheckH2CPING(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
|
tests := []struct {
|
||||||
|
desc string
|
||||||
|
passing bool
|
||||||
|
timeout time.Duration
|
||||||
|
connTimeout time.Duration
|
||||||
|
}{
|
||||||
|
{desc: "passing", passing: true, timeout: 1 * time.Second, connTimeout: 1 * time.Second},
|
||||||
|
{desc: "failing because of time out", passing: false, timeout: 1 * time.Nanosecond, connTimeout: 1 * time.Second},
|
||||||
|
{desc: "failing because of closed connection", passing: false, timeout: 1 * time.Nanosecond, connTimeout: 1 * time.Millisecond},
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, tt := range tests {
|
||||||
|
t.Run(tt.desc, func(t *testing.T) {
|
||||||
|
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { return })
|
||||||
|
h2chandler := h2c.NewHandler(handler, &http2.Server{})
|
||||||
|
server := httptest.NewUnstartedServer(h2chandler)
|
||||||
|
server.Config.ReadTimeout = tt.connTimeout
|
||||||
|
server.Start()
|
||||||
|
defer server.Close()
|
||||||
|
serverAddress := server.Listener.Addr()
|
||||||
|
target := serverAddress.String()
|
||||||
|
|
||||||
|
notif := mock.NewNotify()
|
||||||
|
logger := testutil.Logger(t)
|
||||||
|
statusHandler := NewStatusHandler(notif, logger, 0, 0)
|
||||||
|
cid := structs.NewCheckID("foo", nil)
|
||||||
|
check := &CheckH2PING{
|
||||||
|
CheckID: cid,
|
||||||
|
H2PING: target,
|
||||||
|
Interval: 5 * time.Second,
|
||||||
|
Timeout: tt.timeout,
|
||||||
|
Logger: logger,
|
||||||
|
TLSClientConfig: nil,
|
||||||
|
StatusHandler: statusHandler,
|
||||||
|
}
|
||||||
|
|
||||||
|
check.Start()
|
||||||
|
defer check.Stop()
|
||||||
|
if tt.passing {
|
||||||
|
retry.Run(t, func(r *retry.R) {
|
||||||
|
if got, want := notif.State(cid), api.HealthPassing; got != want {
|
||||||
|
r.Fatalf("got state %q want %q", got, want)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
retry.Run(t, func(r *retry.R) {
|
||||||
|
if got, want := notif.State(cid), api.HealthCritical; got != want {
|
||||||
|
r.Fatalf("got state %q want %q", got, want)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func TestCheck_Docker(t *testing.T) {
|
func TestCheck_Docker(t *testing.T) {
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
t.Skip("too slow for testing.Short")
|
t.Skip("too slow for testing.Short")
|
||||||
|
|
|
@ -1571,6 +1571,7 @@ func (b *builder) checkVal(v *CheckDefinition) *structs.CheckDefinition {
|
||||||
FailuresBeforeCritical: intVal(v.FailuresBeforeCritical),
|
FailuresBeforeCritical: intVal(v.FailuresBeforeCritical),
|
||||||
FailuresBeforeWarning: intValWithDefault(v.FailuresBeforeWarning, intVal(v.FailuresBeforeCritical)),
|
FailuresBeforeWarning: intValWithDefault(v.FailuresBeforeWarning, intVal(v.FailuresBeforeCritical)),
|
||||||
H2PING: stringVal(v.H2PING),
|
H2PING: stringVal(v.H2PING),
|
||||||
|
H2PINGDisableTLS: boolVal(v.H2PINGDisableTLS),
|
||||||
DeregisterCriticalServiceAfter: b.durationVal(fmt.Sprintf("check[%s].deregister_critical_service_after", id), v.DeregisterCriticalServiceAfter),
|
DeregisterCriticalServiceAfter: b.durationVal(fmt.Sprintf("check[%s].deregister_critical_service_after", id), v.DeregisterCriticalServiceAfter),
|
||||||
OutputMaxSize: intValWithDefault(v.OutputMaxSize, checks.DefaultBufSize),
|
OutputMaxSize: intValWithDefault(v.OutputMaxSize, checks.DefaultBufSize),
|
||||||
EnterpriseMeta: v.EnterpriseMeta.ToStructs(),
|
EnterpriseMeta: v.EnterpriseMeta.ToStructs(),
|
||||||
|
|
|
@ -419,6 +419,7 @@ type CheckDefinition struct {
|
||||||
Timeout *string `mapstructure:"timeout"`
|
Timeout *string `mapstructure:"timeout"`
|
||||||
TTL *string `mapstructure:"ttl"`
|
TTL *string `mapstructure:"ttl"`
|
||||||
H2PING *string `mapstructure:"h2ping"`
|
H2PING *string `mapstructure:"h2ping"`
|
||||||
|
H2PINGDisableTLS *bool `mapstructure:"h2ping_disable_tls"`
|
||||||
SuccessBeforePassing *int `mapstructure:"success_before_passing"`
|
SuccessBeforePassing *int `mapstructure:"success_before_passing"`
|
||||||
FailuresBeforeWarning *int `mapstructure:"failures_before_warning"`
|
FailuresBeforeWarning *int `mapstructure:"failures_before_warning"`
|
||||||
FailuresBeforeCritical *int `mapstructure:"failures_before_critical"`
|
FailuresBeforeCritical *int `mapstructure:"failures_before_critical"`
|
||||||
|
|
|
@ -5307,6 +5307,7 @@ func TestLoad_FullConfig(t *testing.T) {
|
||||||
Body: "wSjTy7dg",
|
Body: "wSjTy7dg",
|
||||||
TCP: "RJQND605",
|
TCP: "RJQND605",
|
||||||
H2PING: "9N1cSb5B",
|
H2PING: "9N1cSb5B",
|
||||||
|
H2PINGDisableTLS: true,
|
||||||
Interval: 22164 * time.Second,
|
Interval: 22164 * time.Second,
|
||||||
OutputMaxSize: checks.DefaultBufSize,
|
OutputMaxSize: checks.DefaultBufSize,
|
||||||
DockerContainerID: "ipgdFtjd",
|
DockerContainerID: "ipgdFtjd",
|
||||||
|
@ -5334,6 +5335,7 @@ func TestLoad_FullConfig(t *testing.T) {
|
||||||
OutputMaxSize: checks.DefaultBufSize,
|
OutputMaxSize: checks.DefaultBufSize,
|
||||||
TCP: "4jG5casb",
|
TCP: "4jG5casb",
|
||||||
H2PING: "HCHU7gEb",
|
H2PING: "HCHU7gEb",
|
||||||
|
H2PINGDisableTLS: true,
|
||||||
Interval: 28767 * time.Second,
|
Interval: 28767 * time.Second,
|
||||||
DockerContainerID: "THW6u7rL",
|
DockerContainerID: "THW6u7rL",
|
||||||
Shell: "C1Zt3Zwh",
|
Shell: "C1Zt3Zwh",
|
||||||
|
@ -5360,6 +5362,7 @@ func TestLoad_FullConfig(t *testing.T) {
|
||||||
OutputMaxSize: checks.DefaultBufSize,
|
OutputMaxSize: checks.DefaultBufSize,
|
||||||
TCP: "JY6fTTcw",
|
TCP: "JY6fTTcw",
|
||||||
H2PING: "rQ8eyCSF",
|
H2PING: "rQ8eyCSF",
|
||||||
|
H2PINGDisableTLS: true,
|
||||||
Interval: 18714 * time.Second,
|
Interval: 18714 * time.Second,
|
||||||
DockerContainerID: "qF66POS9",
|
DockerContainerID: "qF66POS9",
|
||||||
Shell: "sOnDy228",
|
Shell: "sOnDy228",
|
||||||
|
@ -5565,6 +5568,7 @@ func TestLoad_FullConfig(t *testing.T) {
|
||||||
OutputMaxSize: checks.DefaultBufSize,
|
OutputMaxSize: checks.DefaultBufSize,
|
||||||
TCP: "ICbxkpSF",
|
TCP: "ICbxkpSF",
|
||||||
H2PING: "7s7BbMyb",
|
H2PING: "7s7BbMyb",
|
||||||
|
H2PINGDisableTLS: true,
|
||||||
Interval: 24392 * time.Second,
|
Interval: 24392 * time.Second,
|
||||||
DockerContainerID: "ZKXr68Yb",
|
DockerContainerID: "ZKXr68Yb",
|
||||||
Shell: "CEfzx0Fo",
|
Shell: "CEfzx0Fo",
|
||||||
|
@ -5616,6 +5620,7 @@ func TestLoad_FullConfig(t *testing.T) {
|
||||||
OutputMaxSize: checks.DefaultBufSize,
|
OutputMaxSize: checks.DefaultBufSize,
|
||||||
TCP: "MN3oA9D2",
|
TCP: "MN3oA9D2",
|
||||||
H2PING: "OV6Q2XEg",
|
H2PING: "OV6Q2XEg",
|
||||||
|
H2PINGDisableTLS: true,
|
||||||
Interval: 32718 * time.Second,
|
Interval: 32718 * time.Second,
|
||||||
DockerContainerID: "cU15LMet",
|
DockerContainerID: "cU15LMet",
|
||||||
Shell: "nEz9qz2l",
|
Shell: "nEz9qz2l",
|
||||||
|
@ -5759,6 +5764,7 @@ func TestLoad_FullConfig(t *testing.T) {
|
||||||
OutputMaxSize: checks.DefaultBufSize,
|
OutputMaxSize: checks.DefaultBufSize,
|
||||||
TCP: "bNnNfx2A",
|
TCP: "bNnNfx2A",
|
||||||
H2PING: "qC1pidiW",
|
H2PING: "qC1pidiW",
|
||||||
|
H2PINGDisableTLS: true,
|
||||||
Interval: 22224 * time.Second,
|
Interval: 22224 * time.Second,
|
||||||
DockerContainerID: "ipgdFtjd",
|
DockerContainerID: "ipgdFtjd",
|
||||||
Shell: "omVZq7Sz",
|
Shell: "omVZq7Sz",
|
||||||
|
@ -5783,6 +5789,7 @@ func TestLoad_FullConfig(t *testing.T) {
|
||||||
OutputMaxSize: checks.DefaultBufSize,
|
OutputMaxSize: checks.DefaultBufSize,
|
||||||
TCP: "FfvCwlqH",
|
TCP: "FfvCwlqH",
|
||||||
H2PING: "spI3muI3",
|
H2PING: "spI3muI3",
|
||||||
|
H2PINGDisableTLS: true,
|
||||||
Interval: 12356 * time.Second,
|
Interval: 12356 * time.Second,
|
||||||
DockerContainerID: "HBndBU6R",
|
DockerContainerID: "HBndBU6R",
|
||||||
Shell: "hVI33JjA",
|
Shell: "hVI33JjA",
|
||||||
|
@ -5807,6 +5814,7 @@ func TestLoad_FullConfig(t *testing.T) {
|
||||||
OutputMaxSize: checks.DefaultBufSize,
|
OutputMaxSize: checks.DefaultBufSize,
|
||||||
TCP: "fjiLFqVd",
|
TCP: "fjiLFqVd",
|
||||||
H2PING: "5NbNWhan",
|
H2PING: "5NbNWhan",
|
||||||
|
H2PINGDisableTLS: true,
|
||||||
Interval: 23926 * time.Second,
|
Interval: 23926 * time.Second,
|
||||||
DockerContainerID: "dO5TtRHk",
|
DockerContainerID: "dO5TtRHk",
|
||||||
Shell: "e6q2ttES",
|
Shell: "e6q2ttES",
|
||||||
|
|
|
@ -99,6 +99,7 @@
|
||||||
"GRPC": "",
|
"GRPC": "",
|
||||||
"GRPCUseTLS": false,
|
"GRPCUseTLS": false,
|
||||||
"H2PING": "",
|
"H2PING": "",
|
||||||
|
"H2PINGDisableTLS": false,
|
||||||
"HTTP": "",
|
"HTTP": "",
|
||||||
"Header": {},
|
"Header": {},
|
||||||
"ID": "",
|
"ID": "",
|
||||||
|
@ -303,6 +304,7 @@
|
||||||
"GRPC": "",
|
"GRPC": "",
|
||||||
"GRPCUseTLS": false,
|
"GRPCUseTLS": false,
|
||||||
"H2PING": "",
|
"H2PING": "",
|
||||||
|
"H2PINGDisableTLS": false,
|
||||||
"HTTP": "",
|
"HTTP": "",
|
||||||
"Header": {},
|
"Header": {},
|
||||||
"Interval": "0s",
|
"Interval": "0s",
|
||||||
|
|
|
@ -110,6 +110,7 @@ check = {
|
||||||
body = "5PBQd2OT"
|
body = "5PBQd2OT"
|
||||||
tcp = "JY6fTTcw"
|
tcp = "JY6fTTcw"
|
||||||
h2ping = "rQ8eyCSF"
|
h2ping = "rQ8eyCSF"
|
||||||
|
h2ping_disable_tls = true
|
||||||
interval = "18714s"
|
interval = "18714s"
|
||||||
output_max_size = 4096
|
output_max_size = 4096
|
||||||
docker_container_id = "qF66POS9"
|
docker_container_id = "qF66POS9"
|
||||||
|
@ -137,6 +138,7 @@ checks = [
|
||||||
body = "wSjTy7dg"
|
body = "wSjTy7dg"
|
||||||
tcp = "RJQND605"
|
tcp = "RJQND605"
|
||||||
h2ping = "9N1cSb5B"
|
h2ping = "9N1cSb5B"
|
||||||
|
h2ping_disable_tls = true
|
||||||
interval = "22164s"
|
interval = "22164s"
|
||||||
output_max_size = 4096
|
output_max_size = 4096
|
||||||
docker_container_id = "ipgdFtjd"
|
docker_container_id = "ipgdFtjd"
|
||||||
|
@ -163,6 +165,7 @@ checks = [
|
||||||
body = "0jkKgGUC"
|
body = "0jkKgGUC"
|
||||||
tcp = "4jG5casb"
|
tcp = "4jG5casb"
|
||||||
h2ping = "HCHU7gEb"
|
h2ping = "HCHU7gEb"
|
||||||
|
h2ping_disable_tls = true
|
||||||
interval = "28767s"
|
interval = "28767s"
|
||||||
output_max_size = 4096
|
output_max_size = 4096
|
||||||
docker_container_id = "THW6u7rL"
|
docker_container_id = "THW6u7rL"
|
||||||
|
@ -380,6 +383,7 @@ service = {
|
||||||
body = "wVVL2V6f"
|
body = "wVVL2V6f"
|
||||||
tcp = "fjiLFqVd"
|
tcp = "fjiLFqVd"
|
||||||
h2ping = "5NbNWhan"
|
h2ping = "5NbNWhan"
|
||||||
|
h2ping_disable_tls = true
|
||||||
interval = "23926s"
|
interval = "23926s"
|
||||||
docker_container_id = "dO5TtRHk"
|
docker_container_id = "dO5TtRHk"
|
||||||
shell = "e6q2ttES"
|
shell = "e6q2ttES"
|
||||||
|
@ -404,6 +408,7 @@ service = {
|
||||||
body = "OwGjTFQi"
|
body = "OwGjTFQi"
|
||||||
tcp = "bNnNfx2A"
|
tcp = "bNnNfx2A"
|
||||||
h2ping = "qC1pidiW"
|
h2ping = "qC1pidiW"
|
||||||
|
h2ping_disable_tls = true
|
||||||
interval = "22224s"
|
interval = "22224s"
|
||||||
output_max_size = 4096
|
output_max_size = 4096
|
||||||
docker_container_id = "ipgdFtjd"
|
docker_container_id = "ipgdFtjd"
|
||||||
|
@ -428,6 +433,7 @@ service = {
|
||||||
body = "lUVLGYU7"
|
body = "lUVLGYU7"
|
||||||
tcp = "FfvCwlqH"
|
tcp = "FfvCwlqH"
|
||||||
h2ping = "spI3muI3"
|
h2ping = "spI3muI3"
|
||||||
|
h2ping_disable_tls = true
|
||||||
interval = "12356s"
|
interval = "12356s"
|
||||||
output_max_size = 4096
|
output_max_size = 4096
|
||||||
docker_container_id = "HBndBU6R"
|
docker_container_id = "HBndBU6R"
|
||||||
|
@ -466,6 +472,7 @@ services = [
|
||||||
body = "WeikigLh"
|
body = "WeikigLh"
|
||||||
tcp = "ICbxkpSF"
|
tcp = "ICbxkpSF"
|
||||||
h2ping = "7s7BbMyb"
|
h2ping = "7s7BbMyb"
|
||||||
|
h2ping_disable_tls = true
|
||||||
interval = "24392s"
|
interval = "24392s"
|
||||||
output_max_size = 4096
|
output_max_size = 4096
|
||||||
docker_container_id = "ZKXr68Yb"
|
docker_container_id = "ZKXr68Yb"
|
||||||
|
@ -507,6 +514,7 @@ services = [
|
||||||
body = "7CRjCJyz"
|
body = "7CRjCJyz"
|
||||||
tcp = "MN3oA9D2"
|
tcp = "MN3oA9D2"
|
||||||
h2ping = "OV6Q2XEg"
|
h2ping = "OV6Q2XEg"
|
||||||
|
h2ping_disable_tls = true
|
||||||
interval = "32718s"
|
interval = "32718s"
|
||||||
output_max_size = 4096
|
output_max_size = 4096
|
||||||
docker_container_id = "cU15LMet"
|
docker_container_id = "cU15LMet"
|
||||||
|
|
|
@ -112,6 +112,7 @@
|
||||||
"output_max_size": 4096,
|
"output_max_size": 4096,
|
||||||
"tcp": "JY6fTTcw",
|
"tcp": "JY6fTTcw",
|
||||||
"h2ping": "rQ8eyCSF",
|
"h2ping": "rQ8eyCSF",
|
||||||
|
"h2ping_disable_tls": true,
|
||||||
"interval": "18714s",
|
"interval": "18714s",
|
||||||
"docker_container_id": "qF66POS9",
|
"docker_container_id": "qF66POS9",
|
||||||
"shell": "sOnDy228",
|
"shell": "sOnDy228",
|
||||||
|
@ -138,6 +139,7 @@
|
||||||
"body": "wSjTy7dg",
|
"body": "wSjTy7dg",
|
||||||
"tcp": "RJQND605",
|
"tcp": "RJQND605",
|
||||||
"h2ping": "9N1cSb5B",
|
"h2ping": "9N1cSb5B",
|
||||||
|
"h2ping_disable_tls": true,
|
||||||
"interval": "22164s",
|
"interval": "22164s",
|
||||||
"output_max_size": 4096,
|
"output_max_size": 4096,
|
||||||
"docker_container_id": "ipgdFtjd",
|
"docker_container_id": "ipgdFtjd",
|
||||||
|
@ -164,6 +166,7 @@
|
||||||
"body": "0jkKgGUC",
|
"body": "0jkKgGUC",
|
||||||
"tcp": "4jG5casb",
|
"tcp": "4jG5casb",
|
||||||
"h2ping": "HCHU7gEb",
|
"h2ping": "HCHU7gEb",
|
||||||
|
"h2ping_disable_tls": true,
|
||||||
"interval": "28767s",
|
"interval": "28767s",
|
||||||
"output_max_size": 4096,
|
"output_max_size": 4096,
|
||||||
"docker_container_id": "THW6u7rL",
|
"docker_container_id": "THW6u7rL",
|
||||||
|
@ -376,6 +379,7 @@
|
||||||
"body": "wVVL2V6f",
|
"body": "wVVL2V6f",
|
||||||
"tcp": "fjiLFqVd",
|
"tcp": "fjiLFqVd",
|
||||||
"h2ping": "5NbNWhan",
|
"h2ping": "5NbNWhan",
|
||||||
|
"h2ping_disable_tls": true,
|
||||||
"interval": "23926s",
|
"interval": "23926s",
|
||||||
"output_max_size": 4096,
|
"output_max_size": 4096,
|
||||||
"docker_container_id": "dO5TtRHk",
|
"docker_container_id": "dO5TtRHk",
|
||||||
|
@ -401,6 +405,7 @@
|
||||||
"body": "OwGjTFQi",
|
"body": "OwGjTFQi",
|
||||||
"tcp": "bNnNfx2A",
|
"tcp": "bNnNfx2A",
|
||||||
"h2ping": "qC1pidiW",
|
"h2ping": "qC1pidiW",
|
||||||
|
"h2ping_disable_tls": true,
|
||||||
"interval": "22224s",
|
"interval": "22224s",
|
||||||
"output_max_size": 4096,
|
"output_max_size": 4096,
|
||||||
"docker_container_id": "ipgdFtjd",
|
"docker_container_id": "ipgdFtjd",
|
||||||
|
@ -425,6 +430,7 @@
|
||||||
"body": "lUVLGYU7",
|
"body": "lUVLGYU7",
|
||||||
"tcp": "FfvCwlqH",
|
"tcp": "FfvCwlqH",
|
||||||
"h2ping": "spI3muI3",
|
"h2ping": "spI3muI3",
|
||||||
|
"h2ping_disable_tls": true,
|
||||||
"interval": "12356s",
|
"interval": "12356s",
|
||||||
"output_max_size": 4096,
|
"output_max_size": 4096,
|
||||||
"docker_container_id": "HBndBU6R",
|
"docker_container_id": "HBndBU6R",
|
||||||
|
@ -463,6 +469,7 @@
|
||||||
"body": "WeikigLh",
|
"body": "WeikigLh",
|
||||||
"tcp": "ICbxkpSF",
|
"tcp": "ICbxkpSF",
|
||||||
"h2ping": "7s7BbMyb",
|
"h2ping": "7s7BbMyb",
|
||||||
|
"h2ping_disable_tls": true,
|
||||||
"interval": "24392s",
|
"interval": "24392s",
|
||||||
"output_max_size": 4096,
|
"output_max_size": 4096,
|
||||||
"docker_container_id": "ZKXr68Yb",
|
"docker_container_id": "ZKXr68Yb",
|
||||||
|
@ -504,6 +511,7 @@
|
||||||
"body": "7CRjCJyz",
|
"body": "7CRjCJyz",
|
||||||
"tcp": "MN3oA9D2",
|
"tcp": "MN3oA9D2",
|
||||||
"h2ping": "OV6Q2XEg",
|
"h2ping": "OV6Q2XEg",
|
||||||
|
"h2ping_disable_tls": true,
|
||||||
"interval": "32718s",
|
"interval": "32718s",
|
||||||
"output_max_size": 4096,
|
"output_max_size": 4096,
|
||||||
"docker_container_id": "cU15LMet",
|
"docker_container_id": "cU15LMet",
|
||||||
|
|
|
@ -285,6 +285,7 @@ var translateCheckTypeTCs = [][]translateKeyTestCase{
|
||||||
translateDockerTCs,
|
translateDockerTCs,
|
||||||
translateGRPCUseTLSTCs,
|
translateGRPCUseTLSTCs,
|
||||||
translateTLSServerNameTCs,
|
translateTLSServerNameTCs,
|
||||||
|
translateH2PINGDisableTLS,
|
||||||
translateTLSSkipVerifyTCs,
|
translateTLSSkipVerifyTCs,
|
||||||
translateServiceIDTCs,
|
translateServiceIDTCs,
|
||||||
}
|
}
|
||||||
|
@ -677,6 +678,62 @@ var translateGRPCUseTLSTCs = []translateKeyTestCase{
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func h2pingDisableTLSEqFn(out interface{}, want interface{}) error {
|
||||||
|
var got interface{}
|
||||||
|
switch v := out.(type) {
|
||||||
|
case structs.CheckDefinition:
|
||||||
|
got = v.H2PINGDisableTLS
|
||||||
|
case *structs.CheckDefinition:
|
||||||
|
got = v.H2PINGDisableTLS
|
||||||
|
case structs.CheckType:
|
||||||
|
got = v.H2PINGDisableTLS
|
||||||
|
case *structs.CheckType:
|
||||||
|
got = v.H2PINGDisableTLS
|
||||||
|
case structs.HealthCheckDefinition:
|
||||||
|
got = v.H2PINGDisableTLS
|
||||||
|
case *structs.HealthCheckDefinition:
|
||||||
|
got = v.H2PINGDisableTLS
|
||||||
|
default:
|
||||||
|
panic(fmt.Sprintf("unexpected type %T", out))
|
||||||
|
}
|
||||||
|
if got != want {
|
||||||
|
return fmt.Errorf("expected H2PINGDisableTLS to be %v, got %v", want, got)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var h2pingDisableTLSFields = []string{`"H2PINGDisableTLS": %s`, `"h2ping_disable_tls": %s`}
|
||||||
|
var translateH2PINGDisableTLS = []translateKeyTestCase{
|
||||||
|
{
|
||||||
|
desc: "H2PINGDisableTLS: both set",
|
||||||
|
in: []interface{}{"true", "false"},
|
||||||
|
want: true,
|
||||||
|
jsonFmtStr: "{" + strings.Join(h2pingDisableTLSFields, ",") + "}",
|
||||||
|
equalityFn: h2pingDisableTLSEqFn,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
desc: "H2PINGDisableTLS:: first set",
|
||||||
|
in: []interface{}{`true`},
|
||||||
|
want: true,
|
||||||
|
jsonFmtStr: "{" + h2pingDisableTLSFields[0] + "}",
|
||||||
|
equalityFn: h2pingDisableTLSEqFn,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
desc: "H2PINGDisableTLS: second set",
|
||||||
|
in: []interface{}{`true`},
|
||||||
|
want: true,
|
||||||
|
jsonFmtStr: "{" + h2pingDisableTLSFields[1] + "}",
|
||||||
|
equalityFn: h2pingDisableTLSEqFn,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
desc: "H2PINGDisableTLS: neither set",
|
||||||
|
in: []interface{}{},
|
||||||
|
want: false, // zero value
|
||||||
|
jsonFmtStr: "{}",
|
||||||
|
equalityFn: h2pingDisableTLSEqFn,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
// ServiceID: string
|
// ServiceID: string
|
||||||
func serviceIDEqFn(out interface{}, want interface{}) error {
|
func serviceIDEqFn(out interface{}, want interface{}) error {
|
||||||
var got interface{}
|
var got interface{}
|
||||||
|
@ -935,6 +992,8 @@ func TestDecodeACLRoleWrite(t *testing.T) {
|
||||||
// Shell string
|
// Shell string
|
||||||
// GRPC string
|
// GRPC string
|
||||||
// GRPCUseTLS bool
|
// GRPCUseTLS bool
|
||||||
|
// H2PING string
|
||||||
|
// H2PINGDisableTLS bool
|
||||||
// TLSServerName string
|
// TLSServerName string
|
||||||
// TLSSkipVerify bool
|
// TLSSkipVerify bool
|
||||||
// AliasNode string
|
// AliasNode string
|
||||||
|
|
|
@ -25,6 +25,7 @@ type CheckDefinition struct {
|
||||||
ScriptArgs []string
|
ScriptArgs []string
|
||||||
HTTP string
|
HTTP string
|
||||||
H2PING string
|
H2PING string
|
||||||
|
H2PINGDisableTLS bool
|
||||||
Header map[string][]string
|
Header map[string][]string
|
||||||
Method string
|
Method string
|
||||||
Body string
|
Body string
|
||||||
|
@ -69,6 +70,7 @@ func (t *CheckDefinition) UnmarshalJSON(data []byte) (err error) {
|
||||||
TLSSkipVerifySnake bool `json:"tls_skip_verify"`
|
TLSSkipVerifySnake bool `json:"tls_skip_verify"`
|
||||||
GRPCUseTLSSnake bool `json:"grpc_use_tls"`
|
GRPCUseTLSSnake bool `json:"grpc_use_tls"`
|
||||||
ServiceIDSnake string `json:"service_id"`
|
ServiceIDSnake string `json:"service_id"`
|
||||||
|
H2PINGDisableTLSSnake bool `json:"h2ping_disable_tls"`
|
||||||
|
|
||||||
*Alias
|
*Alias
|
||||||
}{
|
}{
|
||||||
|
@ -100,6 +102,9 @@ func (t *CheckDefinition) UnmarshalJSON(data []byte) (err error) {
|
||||||
if aux.GRPCUseTLSSnake {
|
if aux.GRPCUseTLSSnake {
|
||||||
t.GRPCUseTLS = aux.GRPCUseTLSSnake
|
t.GRPCUseTLS = aux.GRPCUseTLSSnake
|
||||||
}
|
}
|
||||||
|
if aux.H2PINGDisableTLSSnake {
|
||||||
|
t.H2PINGDisableTLS = aux.H2PINGDisableTLSSnake
|
||||||
|
}
|
||||||
if t.ServiceID == "" {
|
if t.ServiceID == "" {
|
||||||
t.ServiceID = aux.ServiceIDSnake
|
t.ServiceID = aux.ServiceIDSnake
|
||||||
}
|
}
|
||||||
|
@ -182,6 +187,7 @@ func (c *CheckDefinition) CheckType() *CheckType {
|
||||||
AliasService: c.AliasService,
|
AliasService: c.AliasService,
|
||||||
HTTP: c.HTTP,
|
HTTP: c.HTTP,
|
||||||
H2PING: c.H2PING,
|
H2PING: c.H2PING,
|
||||||
|
H2PINGDisableTLS: c.H2PINGDisableTLS,
|
||||||
GRPC: c.GRPC,
|
GRPC: c.GRPC,
|
||||||
GRPCUseTLS: c.GRPCUseTLS,
|
GRPCUseTLS: c.GRPCUseTLS,
|
||||||
Header: c.Header,
|
Header: c.Header,
|
||||||
|
|
|
@ -33,6 +33,7 @@ type CheckType struct {
|
||||||
ScriptArgs []string
|
ScriptArgs []string
|
||||||
HTTP string
|
HTTP string
|
||||||
H2PING string
|
H2PING string
|
||||||
|
H2PINGDisableTLS bool
|
||||||
Header map[string][]string
|
Header map[string][]string
|
||||||
Method string
|
Method string
|
||||||
Body string
|
Body string
|
||||||
|
@ -81,6 +82,7 @@ func (t *CheckType) UnmarshalJSON(data []byte) (err error) {
|
||||||
TLSServerNameSnake string `json:"tls_server_name"`
|
TLSServerNameSnake string `json:"tls_server_name"`
|
||||||
TLSSkipVerifySnake bool `json:"tls_skip_verify"`
|
TLSSkipVerifySnake bool `json:"tls_skip_verify"`
|
||||||
GRPCUseTLSSnake bool `json:"grpc_use_tls"`
|
GRPCUseTLSSnake bool `json:"grpc_use_tls"`
|
||||||
|
H2PINGDisableTLSSnake bool `json:"h2ping_disable_tls"`
|
||||||
|
|
||||||
// These are going to be ignored but since we are disallowing unknown fields
|
// These are going to be ignored but since we are disallowing unknown fields
|
||||||
// during parsing we have to be explicit about parsing but not using these.
|
// during parsing we have to be explicit about parsing but not using these.
|
||||||
|
@ -115,6 +117,9 @@ func (t *CheckType) UnmarshalJSON(data []byte) (err error) {
|
||||||
if aux.GRPCUseTLSSnake {
|
if aux.GRPCUseTLSSnake {
|
||||||
t.GRPCUseTLS = aux.GRPCUseTLSSnake
|
t.GRPCUseTLS = aux.GRPCUseTLSSnake
|
||||||
}
|
}
|
||||||
|
if aux.H2PINGDisableTLSSnake {
|
||||||
|
t.H2PINGDisableTLS = aux.H2PINGDisableTLSSnake
|
||||||
|
}
|
||||||
|
|
||||||
if aux.Interval != nil {
|
if aux.Interval != nil {
|
||||||
switch v := aux.Interval.(type) {
|
switch v := aux.Interval.(type) {
|
||||||
|
|
|
@ -1544,6 +1544,7 @@ type HealthCheckDefinition struct {
|
||||||
Body string `json:",omitempty"`
|
Body string `json:",omitempty"`
|
||||||
TCP string `json:",omitempty"`
|
TCP string `json:",omitempty"`
|
||||||
H2PING string `json:",omitempty"`
|
H2PING string `json:",omitempty"`
|
||||||
|
H2PINGDisableTLS bool `json:",omitempty"`
|
||||||
Interval time.Duration `json:",omitempty"`
|
Interval time.Duration `json:",omitempty"`
|
||||||
OutputMaxSize uint `json:",omitempty"`
|
OutputMaxSize uint `json:",omitempty"`
|
||||||
Timeout time.Duration `json:",omitempty"`
|
Timeout time.Duration `json:",omitempty"`
|
||||||
|
@ -1691,6 +1692,7 @@ func (c *HealthCheck) CheckType() *CheckType {
|
||||||
Body: c.Definition.Body,
|
Body: c.Definition.Body,
|
||||||
TCP: c.Definition.TCP,
|
TCP: c.Definition.TCP,
|
||||||
H2PING: c.Definition.H2PING,
|
H2PING: c.Definition.H2PING,
|
||||||
|
H2PINGDisableTLS: c.Definition.H2PINGDisableTLS,
|
||||||
Interval: c.Definition.Interval,
|
Interval: c.Definition.Interval,
|
||||||
DockerContainerID: c.Definition.DockerContainerID,
|
DockerContainerID: c.Definition.DockerContainerID,
|
||||||
Shell: c.Definition.Shell,
|
Shell: c.Definition.Shell,
|
||||||
|
|
|
@ -327,6 +327,8 @@ type AgentServiceCheck struct {
|
||||||
TLSSkipVerify bool `json:",omitempty"`
|
TLSSkipVerify bool `json:",omitempty"`
|
||||||
GRPC string `json:",omitempty"`
|
GRPC string `json:",omitempty"`
|
||||||
GRPCUseTLS bool `json:",omitempty"`
|
GRPCUseTLS bool `json:",omitempty"`
|
||||||
|
H2PING string `json:",omitempty"`
|
||||||
|
H2PINGDisableTLS bool `json:",omitempty"`
|
||||||
AliasNode string `json:",omitempty"`
|
AliasNode string `json:",omitempty"`
|
||||||
AliasService string `json:",omitempty"`
|
AliasService string `json:",omitempty"`
|
||||||
SuccessBeforePassing int `json:",omitempty"`
|
SuccessBeforePassing int `json:",omitempty"`
|
||||||
|
|
|
@ -13,6 +13,7 @@ func CheckTypeToStructs(s CheckType) structs.CheckType {
|
||||||
t.ScriptArgs = s.ScriptArgs
|
t.ScriptArgs = s.ScriptArgs
|
||||||
t.HTTP = s.HTTP
|
t.HTTP = s.HTTP
|
||||||
t.H2PING = s.H2PING
|
t.H2PING = s.H2PING
|
||||||
|
t.H2PINGDisableTLS = s.H2PINGDisableTLS
|
||||||
t.Header = MapHeadersToStructs(s.Header)
|
t.Header = MapHeadersToStructs(s.Header)
|
||||||
t.Method = s.Method
|
t.Method = s.Method
|
||||||
t.Body = s.Body
|
t.Body = s.Body
|
||||||
|
@ -46,6 +47,7 @@ func NewCheckTypeFromStructs(t structs.CheckType) CheckType {
|
||||||
s.ScriptArgs = t.ScriptArgs
|
s.ScriptArgs = t.ScriptArgs
|
||||||
s.HTTP = t.HTTP
|
s.HTTP = t.HTTP
|
||||||
s.H2PING = t.H2PING
|
s.H2PING = t.H2PING
|
||||||
|
s.H2PINGDisableTLS = t.H2PINGDisableTLS
|
||||||
s.Header = NewMapHeadersFromStructs(t.Header)
|
s.Header = NewMapHeadersFromStructs(t.Header)
|
||||||
s.Method = t.Method
|
s.Method = t.Method
|
||||||
s.Body = t.Body
|
s.Body = t.Body
|
||||||
|
@ -120,6 +122,7 @@ func HealthCheckDefinitionToStructs(s HealthCheckDefinition) structs.HealthCheck
|
||||||
t.Body = s.Body
|
t.Body = s.Body
|
||||||
t.TCP = s.TCP
|
t.TCP = s.TCP
|
||||||
t.H2PING = s.H2PING
|
t.H2PING = s.H2PING
|
||||||
|
t.H2PINGDisableTLS = s.H2PINGDisableTLS
|
||||||
t.Interval = s.Interval
|
t.Interval = s.Interval
|
||||||
t.OutputMaxSize = uint(s.OutputMaxSize)
|
t.OutputMaxSize = uint(s.OutputMaxSize)
|
||||||
t.Timeout = s.Timeout
|
t.Timeout = s.Timeout
|
||||||
|
@ -144,6 +147,7 @@ func NewHealthCheckDefinitionFromStructs(t structs.HealthCheckDefinition) Health
|
||||||
s.Body = t.Body
|
s.Body = t.Body
|
||||||
s.TCP = t.TCP
|
s.TCP = t.TCP
|
||||||
s.H2PING = t.H2PING
|
s.H2PING = t.H2PING
|
||||||
|
s.H2PINGDisableTLS = t.H2PINGDisableTLS
|
||||||
s.Interval = t.Interval
|
s.Interval = t.Interval
|
||||||
s.OutputMaxSize = uint32(t.OutputMaxSize)
|
s.OutputMaxSize = uint32(t.OutputMaxSize)
|
||||||
s.Timeout = t.Timeout
|
s.Timeout = t.Timeout
|
||||||
|
|
|
@ -27,7 +27,7 @@ var _ = time.Kitchen
|
||||||
// is compatible with the proto package it is being compiled against.
|
// is compatible with the proto package it is being compiled against.
|
||||||
// A compilation error at this line likely means your copy of the
|
// A compilation error at this line likely means your copy of the
|
||||||
// proto package needs to be updated.
|
// proto package needs to be updated.
|
||||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||||
|
|
||||||
// HealthCheck represents a single check on a given node
|
// HealthCheck represents a single check on a given node
|
||||||
//
|
//
|
||||||
|
@ -153,6 +153,7 @@ type HealthCheckDefinition struct {
|
||||||
DockerContainerID string `protobuf:"bytes,11,opt,name=DockerContainerID,proto3" json:"DockerContainerID,omitempty"`
|
DockerContainerID string `protobuf:"bytes,11,opt,name=DockerContainerID,proto3" json:"DockerContainerID,omitempty"`
|
||||||
Shell string `protobuf:"bytes,12,opt,name=Shell,proto3" json:"Shell,omitempty"`
|
Shell string `protobuf:"bytes,12,opt,name=Shell,proto3" json:"Shell,omitempty"`
|
||||||
H2PING string `protobuf:"bytes,20,opt,name=H2PING,proto3" json:"H2PING,omitempty"`
|
H2PING string `protobuf:"bytes,20,opt,name=H2PING,proto3" json:"H2PING,omitempty"`
|
||||||
|
H2PINGDisableTLS bool `protobuf:"varint,21,opt,name=H2PINGDisableTLS,proto3" json:"H2PINGDisableTLS,omitempty"`
|
||||||
GRPC string `protobuf:"bytes,13,opt,name=GRPC,proto3" json:"GRPC,omitempty"`
|
GRPC string `protobuf:"bytes,13,opt,name=GRPC,proto3" json:"GRPC,omitempty"`
|
||||||
GRPCUseTLS bool `protobuf:"varint,14,opt,name=GRPCUseTLS,proto3" json:"GRPCUseTLS,omitempty"`
|
GRPCUseTLS bool `protobuf:"varint,14,opt,name=GRPCUseTLS,proto3" json:"GRPCUseTLS,omitempty"`
|
||||||
AliasNode string `protobuf:"bytes,15,opt,name=AliasNode,proto3" json:"AliasNode,omitempty"`
|
AliasNode string `protobuf:"bytes,15,opt,name=AliasNode,proto3" json:"AliasNode,omitempty"`
|
||||||
|
@ -223,6 +224,7 @@ type CheckType struct {
|
||||||
DockerContainerID string `protobuf:"bytes,12,opt,name=DockerContainerID,proto3" json:"DockerContainerID,omitempty"`
|
DockerContainerID string `protobuf:"bytes,12,opt,name=DockerContainerID,proto3" json:"DockerContainerID,omitempty"`
|
||||||
Shell string `protobuf:"bytes,13,opt,name=Shell,proto3" json:"Shell,omitempty"`
|
Shell string `protobuf:"bytes,13,opt,name=Shell,proto3" json:"Shell,omitempty"`
|
||||||
H2PING string `protobuf:"bytes,28,opt,name=H2PING,proto3" json:"H2PING,omitempty"`
|
H2PING string `protobuf:"bytes,28,opt,name=H2PING,proto3" json:"H2PING,omitempty"`
|
||||||
|
H2PINGDisableTLS bool `protobuf:"varint,30,opt,name=H2PINGDisableTLS,proto3" json:"H2PINGDisableTLS,omitempty"`
|
||||||
GRPC string `protobuf:"bytes,14,opt,name=GRPC,proto3" json:"GRPC,omitempty"`
|
GRPC string `protobuf:"bytes,14,opt,name=GRPC,proto3" json:"GRPC,omitempty"`
|
||||||
GRPCUseTLS bool `protobuf:"varint,15,opt,name=GRPCUseTLS,proto3" json:"GRPCUseTLS,omitempty"`
|
GRPCUseTLS bool `protobuf:"varint,15,opt,name=GRPCUseTLS,proto3" json:"GRPCUseTLS,omitempty"`
|
||||||
TLSServerName string `protobuf:"bytes,27,opt,name=TLSServerName,proto3" json:"TLSServerName,omitempty"`
|
TLSServerName string `protobuf:"bytes,27,opt,name=TLSServerName,proto3" json:"TLSServerName,omitempty"`
|
||||||
|
@ -291,75 +293,76 @@ func init() {
|
||||||
func init() { proto.RegisterFile("proto/pbservice/healthcheck.proto", fileDescriptor_8a6f7448747c9fbe) }
|
func init() { proto.RegisterFile("proto/pbservice/healthcheck.proto", fileDescriptor_8a6f7448747c9fbe) }
|
||||||
|
|
||||||
var fileDescriptor_8a6f7448747c9fbe = []byte{
|
var fileDescriptor_8a6f7448747c9fbe = []byte{
|
||||||
// 1076 bytes of a gzipped FileDescriptorProto
|
// 1100 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x5d, 0x4f, 0xe3, 0x46,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xdd, 0x4e, 0xe3, 0x46,
|
||||||
0x14, 0x8d, 0x09, 0x24, 0xf1, 0x04, 0x58, 0x98, 0x05, 0x3a, 0xcb, 0x6e, 0x4d, 0x4a, 0xf7, 0x81,
|
0x14, 0x8e, 0x09, 0x49, 0xc8, 0x04, 0x58, 0x98, 0x05, 0x3a, 0xcb, 0x6e, 0x4d, 0x4a, 0xf7, 0x82,
|
||||||
0xaa, 0x34, 0x91, 0xe8, 0x87, 0xda, 0x4a, 0x6d, 0x45, 0x08, 0x0b, 0xa9, 0x80, 0xa6, 0x4e, 0xba,
|
0xb6, 0x34, 0x91, 0xe8, 0x8f, 0xda, 0x4a, 0x6d, 0x45, 0x08, 0x0b, 0xa9, 0x80, 0xa6, 0x4e, 0xba,
|
||||||
0x95, 0xfa, 0x66, 0x9c, 0x49, 0x62, 0xe1,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 0xcc, 0xb8, 0x1b, 0x36, 0xb7, 0x86, 0x94, 0xe4, 0xa3, 0xcd,
|
0xb8, 0x55, 0x39, 0x1a, 0x52, 0xbf, 0x12, 0x26, 0x59, 0x51, 0x36, 0x1c, 0x6e, 0x0f, 0x28, 0xc9,
|
||||||
0xad, 0x21, 0xc5, 0x6b, 0xa8, 0xd0, 0x16, 0x96, 0x08, 0x03, 0x32, 0x0b, 0xd9, 0x28, 0xc2, 0x2b,
|
0x86, 0x87, 0xdb, 0x03, 0x8a, 0xd7, 0x50, 0xbe, 0x25, 0x6d, 0x19, 0xf8, 0x64, 0x16, 0xac, 0xa1,
|
||||||
0x68, 0xee, 0x84, 0x09, 0x1a, 0x90, 0x39, 0x48, 0xab, 0x40, 0x56, 0xff, 0x14, 0x0a, 0x3f, 0x14,
|
0x86, 0x57, 0x50, 0xee, 0x84, 0x4b, 0xea, 0x93, 0x1c, 0x98, 0xb5, 0xa2, 0xa2, 0xbf, 0x0d, 0xe4,
|
||||||
0xa4, 0xa0, 0xaa, 0x55, 0x84, 0x9f, 0x20, 0xbd, 0xad, 0x1e, 0xa9, 0xd9, 0x20, 0x45, 0x80, 0xee,
|
0x30, 0x90, 0x24, 0xaf, 0xa3, 0xb5, 0x86, 0x9f, 0xa0, 0x62, 0x4b, 0x17, 0xa9, 0x51, 0x27, 0x05,
|
||||||
0x12, 0xb8, 0x82, 0xca, 0x51, 0x00, 0xc7, 0x97, 0x00, 0x4f, 0xa6, 0x12, 0x15, 0x1d, 0xab, 0x1f,
|
0x70, 0xdd, 0x19, 0x70, 0x19, 0x95, 0x42, 0x05, 0xae, 0x9f, 0x03, 0x7f, 0xdc, 0x14, 0x8b, 0x68,
|
||||||
0x10, 0xbd, 0x92, 0x4f, 0x54, 0xc8, 0x94, 0xfc, 0xf6, 0xce, 0xc8, 0xa7, 0x64, 0x5e, 0x7d, 0xbb,
|
0xdb, 0x3d, 0x9f, 0x14, 0xcb, 0xd9, 0x58, 0x84, 0x32, 0xa9,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, 0xd3, 0x77, 0xc5,
|
||||||
0x40, 0xe5, 0x49, 0x87, 0x1e, 0x5f, 0x72, 0x2a, 0x65, 0x17, 0x33, 0x95, 0xbd, 0x3e, 0xa9, 0xec,
|
0x6c, 0x7c, 0x57, 0x24, 0x07, 0x28, 0x37, 0x31, 0x40, 0x11, 0xbb, 0xe4, 0x63, 0xec, 0xf2, 0xd5,
|
||||||
0x52, 0xb6, 0xb2, 0xf5, 0xb7, 0x51, 0x76, 0x8a, 0x57, 0xe8, 0x3e, 0x5e, 0x95, 0x33, 0x78, 0x95,
|
0x98, 0x11, 0x56, 0x80, 0x11, 0xe2, 0x6c, 0x3e, 0x7e, 0xe4, 0xbd, 0x58, 0xa0, 0x90, 0xca, 0x02,
|
||||||
0xa9, 0x94, 0xf9, 0x7b, 0x95, 0xb2, 0x90, 0xad, 0x94, 0x27, 0x99, 0x4a, 0x59, 0x7c, 0xa3, 0x52,
|
0xeb, 0x93, 0x2c, 0x30, 0x97, 0xce, 0x02, 0xc5, 0xd7, 0x61, 0x81, 0xc4, 0x5c, 0xa1, 0x69, 0x73,
|
||||||
0x1e, 0x4c, 0x28, 0x65, 0xc2, 0xc2, 0x1f, 0x4f, 0x65, 0xe1, 0x4b, 0x59, 0x16, 0x9e, 0x70, 0xb4,
|
0x55, 0x4a, 0x99, 0xab, 0x54, 0x54, 0xcd, 0x4f, 0x45, 0xd5, 0x42, 0x3a, 0xaa, 0x9e, 0x4c, 0x45,
|
||||||
0xe5, 0xb7, 0x70, 0xb4, 0x48, 0x72, 0xf8, 0xff, 0x49, 0x0e, 0xef, 0xa0, 0x95, 0x76, 0x68, 0xdb,
|
0x95, 0x39, 0x05, 0x55, 0x8b, 0xaf, 0x44, 0xd5, 0x83, 0x09, 0x54, 0x4d, 0xac, 0x86, 0xc7, 0xf7,
|
||||||
0x34, 0x08, 0xea, 0xb4, 0xc7, 0x38, 0x6d, 0x59, 0x41, 0xe0, 0x78, 0x7d, 0xb2, 0x0a, 0x3f, 0x9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|
||||||
0x18, 0xda, 0xd5, 0x8d, 0xa1, 0xfd, 0x7d, 0x63, 0x68, 0x2f, 0x6e, 0x8d, 0xdc, 0xcb, 0x5b, 0x23,
|
0x5f, 0x1f, 0x0f, 0xdf, 0xdc, 0xfa, 0x98, 0x58, 0x88, 0x8f, 0xe0, 0x5d, 0x49, 0xe3, 0xff, 0xc0,
|
||||||
0x77, 0x75, 0x6b, 0xe4, 0xfe, 0xb8, 0x35, 0x72, 0xbf, 0x7d, 0xfa, 0x5f, 0x16, 0xf7, 0xda, 0x3f,
|
0x87, 0xb5, 0xe3, 0xcb, 0xbf, 0xcc, 0xcc, 0xe5, 0x8d, 0x69, 0x5c, 0xdd, 0x98, 0xc6, 0x9f, 0x37,
|
||||||
0xee, 0xa7, 0x05, 0x48, 0x7c, 0xfe, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8b, 0x36, 0xc6, 0x76,
|
0xa6, 0xf1, 0xcb, 0xad, 0x99, 0x79, 0x71, 0x6b, 0x66, 0xae, 0x6e, 0xcd, 0xcc, 0x6f, 0xb7, 0x66,
|
||||||
0xd2, 0x0b, 0x00, 0x00,
|
0xe6, 0xc7, 0x0f, 0xfe, 0x8d, 0x0e, 0x5f, 0xfa, 0x43, 0x70, 0x9a, 0x07, 0xc3, 0x47, 0xff, 0x04,
|
||||||
|
0x00, 0x00, 0xff, 0xff, 0xb7, 0x54, 0xd1, 0x6f, 0x2a, 0x0c, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *HealthCheck) Marshal() (dAtA []byte, err error) {
|
func (m *HealthCheck) Marshal() (dAtA []byte, err error) {
|
||||||
|
@ -560,6 +563,18 @@ func (m *HealthCheckDefinition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
_ = l
|
_ = l
|
||||||
|
if m.H2PINGDisableTLS {
|
||||||
|
i--
|
||||||
|
if m.H2PINGDisableTLS {
|
||||||
|
dAtA[i] = 1
|
||||||
|
} else {
|
||||||
|
dAtA[i] = 0
|
||||||
|
}
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x1
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0xa8
|
||||||
|
}
|
||||||
if len(m.H2PING) > 0 {
|
if len(m.H2PING) > 0 {
|
||||||
i -= len(m.H2PING)
|
i -= len(m.H2PING)
|
||||||
copy(dAtA[i:], m.H2PING)
|
copy(dAtA[i:], m.H2PING)
|
||||||
|
@ -760,6 +775,18 @@ func (m *CheckType) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
_ = l
|
_ = l
|
||||||
|
if m.H2PINGDisableTLS {
|
||||||
|
i--
|
||||||
|
if m.H2PINGDisableTLS {
|
||||||
|
dAtA[i] = 1
|
||||||
|
} else {
|
||||||
|
dAtA[i] = 0
|
||||||
|
}
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x1
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0xf0
|
||||||
|
}
|
||||||
if m.FailuresBeforeWarning != 0 {
|
if m.FailuresBeforeWarning != 0 {
|
||||||
i = encodeVarintHealthcheck(dAtA, i, uint64(m.FailuresBeforeWarning))
|
i = encodeVarintHealthcheck(dAtA, i, uint64(m.FailuresBeforeWarning))
|
||||||
i--
|
i--
|
||||||
|
@ -1191,6 +1218,9 @@ func (m *HealthCheckDefinition) Size() (n int) {
|
||||||
if l > 0 {
|
if l > 0 {
|
||||||
n += 2 + l + sovHealthcheck(uint64(l))
|
n += 2 + l + sovHealthcheck(uint64(l))
|
||||||
}
|
}
|
||||||
|
if m.H2PINGDisableTLS {
|
||||||
|
n += 3
|
||||||
|
}
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1309,6 +1339,9 @@ func (m *CheckType) Size() (n int) {
|
||||||
if m.FailuresBeforeWarning != 0 {
|
if m.FailuresBeforeWarning != 0 {
|
||||||
n += 2 + sovHealthcheck(uint64(m.FailuresBeforeWarning))
|
n += 2 + sovHealthcheck(uint64(m.FailuresBeforeWarning))
|
||||||
}
|
}
|
||||||
|
if m.H2PINGDisableTLS {
|
||||||
|
n += 3
|
||||||
|
}
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1855,7 +1888,10 @@ func (m *HealthCheck) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthHealthcheck
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthHealthcheck
|
return ErrInvalidLengthHealthcheck
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -1937,7 +1973,10 @@ func (m *HeaderValue) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthHealthcheck
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthHealthcheck
|
return ErrInvalidLengthHealthcheck
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -2151,7 +2190,7 @@ func (m *HealthCheckDefinition) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
return ErrInvalidLengthHealthcheck
|
return ErrInvalidLengthHealthcheck
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > postIndex {
|
if (iNdEx + skippy) > postIndex {
|
||||||
|
@ -2685,13 +2724,36 @@ func (m *HealthCheckDefinition) Unmarshal(dAtA []byte) error {
|
||||||
}
|
}
|
||||||
m.H2PING = string(dAtA[iNdEx:postIndex])
|
m.H2PING = string(dAtA[iNdEx:postIndex])
|
||||||
iNdEx = postIndex
|
iNdEx = postIndex
|
||||||
|
case 21:
|
||||||
|
if wireType != 0 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field H2PINGDisableTLS", wireType)
|
||||||
|
}
|
||||||
|
var v int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowHealthcheck
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
v |= int(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
m.H2PINGDisableTLS = bool(v != 0)
|
||||||
default:
|
default:
|
||||||
iNdEx = preIndex
|
iNdEx = preIndex
|
||||||
skippy, err := skipHealthcheck(dAtA[iNdEx:])
|
skippy, err := skipHealthcheck(dAtA[iNdEx:])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthHealthcheck
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthHealthcheck
|
return ErrInvalidLengthHealthcheck
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -3441,7 +3503,7 @@ func (m *CheckType) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
return ErrInvalidLengthHealthcheck
|
return ErrInvalidLengthHealthcheck
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > postIndex {
|
if (iNdEx + skippy) > postIndex {
|
||||||
|
@ -3688,13 +3750,36 @@ func (m *CheckType) Unmarshal(dAtA []byte) error {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case 30:
|
||||||
|
if wireType != 0 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field H2PINGDisableTLS", wireType)
|
||||||
|
}
|
||||||
|
var v int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowHealthcheck
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
v |= int(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
m.H2PINGDisableTLS = bool(v != 0)
|
||||||
default:
|
default:
|
||||||
iNdEx = preIndex
|
iNdEx = preIndex
|
||||||
skippy, err := skipHealthcheck(dAtA[iNdEx:])
|
skippy, err := skipHealthcheck(dAtA[iNdEx:])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthHealthcheck
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthHealthcheck
|
return ErrInvalidLengthHealthcheck
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -3712,7 +3797,6 @@ func (m *CheckType) Unmarshal(dAtA []byte) error {
|
||||||
func skipHealthcheck(dAtA []byte) (n int, err error) {
|
func skipHealthcheck(dAtA []byte) (n int, err error) {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
depth := 0
|
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
var wire uint64
|
var wire uint64
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
@ -3744,8 +3828,10 @@ func skipHealthcheck(dAtA []byte) (n int, err error) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return iNdEx, nil
|
||||||
case 1:
|
case 1:
|
||||||
iNdEx += 8
|
iNdEx += 8
|
||||||
|
return iNdEx, nil
|
||||||
case 2:
|
case 2:
|
||||||
var length int
|
var length int
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
@ -3766,30 +3852,55 @@ func skipHealthcheck(dAtA []byte) (n int, err error) {
|
||||||
return 0, ErrInvalidLengthHealthcheck
|
return 0, ErrInvalidLengthHealthcheck
|
||||||
}
|
}
|
||||||
iNdEx += length
|
iNdEx += length
|
||||||
case 3:
|
if iNdEx < 0 {
|
||||||
depth++
|
return 0, ErrInvalidLengthHealthcheck
|
||||||
case 4:
|
|
||||||
if depth == 0 {
|
|
||||||
return 0, ErrUnexpectedEndOfGroupHealthcheck
|
|
||||||
}
|
}
|
||||||
depth--
|
return iNdEx, nil
|
||||||
|
case 3:
|
||||||
|
for {
|
||||||
|
var innerWire uint64
|
||||||
|
var start int = iNdEx
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return 0, ErrIntOverflowHealthcheck
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return 0, io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
innerWire |= (uint64(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
innerWireType := int(innerWire & 0x7)
|
||||||
|
if innerWireType == 4 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
next, err := skipHealthcheck(dAtA[start:])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
iNdEx = start + next
|
||||||
|
if iNdEx < 0 {
|
||||||
|
return 0, ErrInvalidLengthHealthcheck
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return iNdEx, nil
|
||||||
|
case 4:
|
||||||
|
return iNdEx, nil
|
||||||
case 5:
|
case 5:
|
||||||
iNdEx += 4
|
iNdEx += 4
|
||||||
|
return iNdEx, nil
|
||||||
default:
|
default:
|
||||||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||||
}
|
}
|
||||||
if iNdEx < 0 {
|
|
||||||
return 0, ErrInvalidLengthHealthcheck
|
|
||||||
}
|
|
||||||
if depth == 0 {
|
|
||||||
return iNdEx, nil
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 0, io.ErrUnexpectedEOF
|
panic("unreachable")
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrInvalidLengthHealthcheck = fmt.Errorf("proto: negative length found during unmarshaling")
|
ErrInvalidLengthHealthcheck = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||||
ErrIntOverflowHealthcheck = fmt.Errorf("proto: integer overflow")
|
ErrIntOverflowHealthcheck = fmt.Errorf("proto: integer overflow")
|
||||||
ErrUnexpectedEndOfGroupHealthcheck = fmt.Errorf("proto: unexpected end of group")
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -83,6 +83,7 @@ message HealthCheckDefinition {
|
||||||
string DockerContainerID = 11;
|
string DockerContainerID = 11;
|
||||||
string Shell = 12;
|
string Shell = 12;
|
||||||
string H2PING = 20;
|
string H2PING = 20;
|
||||||
|
bool H2PINGDisableTLS = 21;
|
||||||
string GRPC = 13;
|
string GRPC = 13;
|
||||||
bool GRPCUseTLS = 14;
|
bool GRPCUseTLS = 14;
|
||||||
string AliasNode = 15;
|
string AliasNode = 15;
|
||||||
|
@ -124,6 +125,7 @@ message CheckType {
|
||||||
string DockerContainerID = 12;
|
string DockerContainerID = 12;
|
||||||
string Shell = 13;
|
string Shell = 13;
|
||||||
string H2PING = 28;
|
string H2PING = 28;
|
||||||
|
bool H2PINGDisableTLS = 30;
|
||||||
string GRPC = 14;
|
string GRPC = 14;
|
||||||
bool GRPCUseTLS = 15;
|
bool GRPCUseTLS = 15;
|
||||||
string TLSServerName = 27;
|
string TLSServerName = 27;
|
||||||
|
|
|
@ -24,7 +24,7 @@ var _ = math.Inf
|
||||||
// is compatible with the proto package it is being compiled against.
|
// is compatible with the proto package it is being compiled against.
|
||||||
// A compilation error at this line likely means your copy of the
|
// A compilation error at this line likely means your copy of the
|
||||||
// proto package needs to be updated.
|
// proto package needs to be updated.
|
||||||
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||||
|
|
||||||
// ConnectProxyConfig describes the configuration needed for any proxy managed
|
// ConnectProxyConfig describes the configuration needed for any proxy managed
|
||||||
// or unmanaged. It describes a single logical service's listener and optionally
|
// or unmanaged. It describes a single logical service's listener and optionally
|
||||||
|
@ -2131,7 +2131,10 @@ func (m *ConnectProxyConfig) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthService
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthService
|
return ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -2545,7 +2548,10 @@ func (m *Upstream) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthService
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthService
|
return ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -2651,7 +2657,10 @@ func (m *ServiceConnect) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthService
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthService
|
return ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -2755,7 +2764,10 @@ func (m *ExposeConfig) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthService
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthService
|
return ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -2927,7 +2939,10 @@ func (m *ExposePath) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthService
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthService
|
return ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -3009,7 +3024,10 @@ func (m *MeshGatewayConfig) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthService
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthService
|
return ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -3098,7 +3116,10 @@ func (m *TransparentProxyConfig) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthService
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthService
|
return ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -3418,7 +3439,7 @@ func (m *ServiceDefinition) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
return ErrInvalidLengthService
|
return ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > postIndex {
|
if (iNdEx + skippy) > postIndex {
|
||||||
|
@ -3793,7 +3814,7 @@ func (m *ServiceDefinition) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
return ErrInvalidLengthService
|
return ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > postIndex {
|
if (iNdEx + skippy) > postIndex {
|
||||||
|
@ -3875,7 +3896,10 @@ func (m *ServiceDefinition) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthService
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthService
|
return ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -3976,7 +4000,10 @@ func (m *ServiceAddress) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthService
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthService
|
return ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -4064,7 +4091,10 @@ func (m *Weights) Unmarshal(dAtA []byte) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthService
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) < 0 {
|
||||||
return ErrInvalidLengthService
|
return ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
if (iNdEx + skippy) > l {
|
if (iNdEx + skippy) > l {
|
||||||
|
@ -4082,7 +4112,6 @@ func (m *Weights) Unmarshal(dAtA []byte) error {
|
||||||
func skipService(dAtA []byte) (n int, err error) {
|
func skipService(dAtA []byte) (n int, err error) {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
depth := 0
|
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
var wire uint64
|
var wire uint64
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
@ -4114,8 +4143,10 @@ func skipService(dAtA []byte) (n int, err error) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return iNdEx, nil
|
||||||
case 1:
|
case 1:
|
||||||
iNdEx += 8
|
iNdEx += 8
|
||||||
|
return iNdEx, nil
|
||||||
case 2:
|
case 2:
|
||||||
var length int
|
var length int
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
@ -4136,30 +4167,55 @@ func skipService(dAtA []byte) (n int, err error) {
|
||||||
return 0, ErrInvalidLengthService
|
return 0, ErrInvalidLengthService
|
||||||
}
|
}
|
||||||
iNdEx += length
|
iNdEx += length
|
||||||
case 3:
|
if iNdEx < 0 {
|
||||||
depth++
|
return 0, ErrInvalidLengthService
|
||||||
case 4:
|
|
||||||
if depth == 0 {
|
|
||||||
return 0, ErrUnexpectedEndOfGroupService
|
|
||||||
}
|
}
|
||||||
depth--
|
return iNdEx, nil
|
||||||
|
case 3:
|
||||||
|
for {
|
||||||
|
var innerWire uint64
|
||||||
|
var start int = iNdEx
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return 0, ErrIntOverflowService
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return 0, io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
innerWire |= (uint64(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
innerWireType := int(innerWire & 0x7)
|
||||||
|
if innerWireType == 4 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
next, err := skipService(dAtA[start:])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
iNdEx = start + next
|
||||||
|
if iNdEx < 0 {
|
||||||
|
return 0, ErrInvalidLengthService
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return iNdEx, nil
|
||||||
|
case 4:
|
||||||
|
return iNdEx, nil
|
||||||
case 5:
|
case 5:
|
||||||
iNdEx += 4
|
iNdEx += 4
|
||||||
|
return iNdEx, nil
|
||||||
default:
|
default:
|
||||||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||||
}
|
}
|
||||||
if iNdEx < 0 {
|
|
||||||
return 0, ErrInvalidLengthService
|
|
||||||
}
|
|
||||||
if depth == 0 {
|
|
||||||
return iNdEx, nil
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 0, io.ErrUnexpectedEOF
|
panic("unreachable")
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling")
|
ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||||
ErrIntOverflowService = fmt.Errorf("proto: integer overflow")
|
ErrIntOverflowService = fmt.Errorf("proto: integer overflow")
|
||||||
ErrUnexpectedEndOfGroupService = fmt.Errorf("proto: unexpected end of group")
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -183,10 +183,11 @@ The table below shows this endpoint's support for
|
||||||
If TLS is enabled, then by default, a valid TLS certificate is expected. Certificate
|
If TLS is enabled, then by default, a valid TLS certificate is expected. Certificate
|
||||||
verification can be turned off by setting `TLSSkipVerify` to `true`.
|
verification can be turned off by setting `TLSSkipVerify` to `true`.
|
||||||
|
|
||||||
- `H2PING` `(string "")` - Specifies an address that uses http2 with TLS to run a ping check on.
|
- `H2PING` `(string "")` - Specifies an address that uses http2 to run a ping check on.
|
||||||
At the specified `Interval`, a connection is made to the address, and a ping is sent.
|
At the specified `Interval`, a connection is made to the address, and a ping is sent.
|
||||||
If the ping is successful, the check will be classified as `passing`, otherwise it will be marked as `critical`.
|
If the ping is successful, the check will be classified as `passing`, otherwise it will be marked as `critical`.
|
||||||
A valid SSL certificate is required by default, but verification can be removed with `TLSSkipVerify`.
|
TLS is used by default. To disable TLS and use h2c, set `H2PINGDisableTLS` to `true`.
|
||||||
|
If TLS is enabled, a valid SSL certificate is required by default, but verification can be removed with `TLSSkipVerify`.
|
||||||
|
|
||||||
- `HTTP` `(string: "")` - Specifies an `HTTP` check to perform a `GET` request
|
- `HTTP` `(string: "")` - Specifies an `HTTP` check to perform a `GET` request
|
||||||
against the value of `HTTP` (expected to be a URL) every `Interval`. If the
|
against the value of `HTTP` (expected to be a URL) every `Interval`. If the
|
||||||
|
|
|
@ -120,10 +120,11 @@ There are several different kinds of checks:
|
||||||
`tls_skip_verify` field to `true` in the check definition.
|
`tls_skip_verify` field to `true` in the check definition.
|
||||||
To check on a specific service instead of the whole gRPC server, add the service identifier after the `gRPC` check's endpoint in the following format `/:service_identifier`.
|
To check on a specific service instead of the whole gRPC server, add the service identifier after the `gRPC` check's endpoint in the following format `/:service_identifier`.
|
||||||
|
|
||||||
- `H2ping + Interval` - These checks test an endpoint that uses http2 with TLS
|
- `H2ping + Interval` - These checks test an endpoint that uses http2
|
||||||
by connecting to the endpoint and sending a ping frame. If the ping is successful
|
by connecting to the endpoint and sending a ping frame. TLS is assumed to be configured by default.
|
||||||
|
To disable TLS and use h2c, set `h2ping_disable_tls` to `true`. If the ping is successful
|
||||||
within a specified timeout, then the check is updated as passing.
|
within a specified timeout, then the check is updated as passing.
|
||||||
The timeout defaults to 10 seconds, but is configurable using the `timeout` field. A valid
|
The timeout defaults to 10 seconds, but is configurable using the `timeout` field. If TLS is enabled a valid
|
||||||
certificate is required, unless `tls_skip_verify` is set to `true`.
|
certificate is required, unless `tls_skip_verify` is set to `true`.
|
||||||
The check will be run on the interval specified by the `interval` field.
|
The check will be run on the interval specified by the `interval` field.
|
||||||
|
|
||||||
|
@ -251,6 +252,7 @@ A h2ping check:
|
||||||
"name": "h2ping",
|
"name": "h2ping",
|
||||||
"h2ping": "localhost:22222",
|
"h2ping": "localhost:22222",
|
||||||
"interval": "10s",
|
"interval": "10s",
|
||||||
|
"h2ping_disable_tls": false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue