Skip to content

Commit

Permalink
Apply review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Aswin Surayanarayanan <[email protected]>
  • Loading branch information
aswinsuryan committed Oct 27, 2020
1 parent 1d2bf0c commit 3807b06
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
16 changes: 13 additions & 3 deletions pkg/apis/submariner.io/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ type Endpoint struct {
}

type EndpointSpec struct {
ClusterID string `json:"cluster_id"`
CableName string `json:"cable_name"`
ClusterID string `json:"cluster_id"`
CableName string `json:"cable_name"`
// +optional
HealthCheckIP string `json:"health_check_ip,omitempty"`
Hostname string `json:"hostname"`
Subnets []string `json:"subnets"`
Expand Down Expand Up @@ -78,11 +79,20 @@ type GatewayStatus struct {
Version string `json:"version"`
HAStatus HAStatus `json:"haStatus"`
LocalEndpoint EndpointSpec `json:"localEndpoint"`
Latency string `json:"latency"`
// +optional
Latency LatencySpec `json:"latency"`
StatusFailure string `json:"statusFailure"`
Connections []Connection `json:"connections"`
}

type LatencySpec struct {
Last string `json:"last"`
Min string `json:"min"`
Avg string `json:"avg"`
Max string `json:"max"`
Mdev string `json:"mdev"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type GatewayList struct {
Expand Down
17 changes: 17 additions & 0 deletions pkg/apis/submariner.io/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3807b06

Please sign in to comment.