Add GRPC and GRPCUseTLS to api.HealthCheckDefinition (#12108)

* Add GRPC to HealthCheckDefinition

* add GRPC and GRPCUseTLS
This commit is contained in:
VictorBac 2022-01-19 16:09:15 -05:00 committed by GitHub
parent d7a0392dbc
commit 31a39c9528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -277,6 +277,8 @@ func (s *HTTPHandlers) convertOps(resp http.ResponseWriter, req *http.Request) (
Method: check.Definition.Method,
Body: check.Definition.Body,
TCP: check.Definition.TCP,
GRPC: check.Definition.GRPC,
GRPCUseTLS: check.Definition.GRPCUseTLS,
Interval: interval,
Timeout: timeout,
DeregisterCriticalServiceAfter: deregisterCriticalServiceAfter,

View File

@ -62,6 +62,8 @@ type HealthCheckDefinition struct {
TLSServerName string
TLSSkipVerify bool
TCP string
GRPC string
GRPCUseTLS bool
IntervalDuration time.Duration `json:"-"`
TimeoutDuration time.Duration `json:"-"`
DeregisterCriticalServiceAfterDuration time.Duration `json:"-"`