mirror of https://github.com/hashicorp/consul
Add GRPC and GRPCUseTLS to api.HealthCheckDefinition (#12108)
* Add GRPC to HealthCheckDefinition * add GRPC and GRPCUseTLSpull/12127/head
parent
d7a0392dbc
commit
31a39c9528
|
@ -277,6 +277,8 @@ func (s *HTTPHandlers) convertOps(resp http.ResponseWriter, req *http.Request) (
|
||||||
Method: check.Definition.Method,
|
Method: check.Definition.Method,
|
||||||
Body: check.Definition.Body,
|
Body: check.Definition.Body,
|
||||||
TCP: check.Definition.TCP,
|
TCP: check.Definition.TCP,
|
||||||
|
GRPC: check.Definition.GRPC,
|
||||||
|
GRPCUseTLS: check.Definition.GRPCUseTLS,
|
||||||
Interval: interval,
|
Interval: interval,
|
||||||
Timeout: timeout,
|
Timeout: timeout,
|
||||||
DeregisterCriticalServiceAfter: deregisterCriticalServiceAfter,
|
DeregisterCriticalServiceAfter: deregisterCriticalServiceAfter,
|
||||||
|
|
|
@ -62,6 +62,8 @@ type HealthCheckDefinition struct {
|
||||||
TLSServerName string
|
TLSServerName string
|
||||||
TLSSkipVerify bool
|
TLSSkipVerify bool
|
||||||
TCP string
|
TCP string
|
||||||
|
GRPC string
|
||||||
|
GRPCUseTLS bool
|
||||||
IntervalDuration time.Duration `json:"-"`
|
IntervalDuration time.Duration `json:"-"`
|
||||||
TimeoutDuration time.Duration `json:"-"`
|
TimeoutDuration time.Duration `json:"-"`
|
||||||
DeregisterCriticalServiceAfterDuration time.Duration `json:"-"`
|
DeregisterCriticalServiceAfterDuration time.Duration `json:"-"`
|
||||||
|
|
Loading…
Reference in New Issue