Skip to content

Commit

Permalink
Add fields for HealthCheck
Browse files Browse the repository at this point in the history
*HealthCheck Ip is added in EndpointSpec
*Latency is added in GatewayStatus

Fixes: submariner-io#821
Signed-off-by: Aswin Surayanarayanan <[email protected]>
  • Loading branch information
aswinsuryan committed Oct 27, 2020
1 parent 3d71674 commit 1d2bf0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/apis/submariner.io/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ type Endpoint struct {
type EndpointSpec struct {
ClusterID string `json:"cluster_id"`
CableName string `json:"cable_name"`
HealthCheckIP string `json:"health_check_ip,omitempty"`
Hostname string `json:"hostname"`
Subnets []string `json:"subnets"`
PrivateIP string `json:"private_ip"`
Expand Down Expand Up @@ -77,6 +78,7 @@ type GatewayStatus struct {
Version string `json:"version"`
HAStatus HAStatus `json:"haStatus"`
LocalEndpoint EndpointSpec `json:"localEndpoint"`
Latency string `json:"latency"`
StatusFailure string `json:"statusFailure"`
Connections []Connection `json:"connections"`
}
Expand Down

0 comments on commit 1d2bf0c

Please sign in to comment.