Add units in healthcheck fields
@@ -86,11 +86,30 @@ type GatewayStatus struct {
// LatencySpec describes the round trip time information in nanoseconds for a packet
// between the gateway pods of two clusters.
type LatencySpec struct {
- LastRTT uint64 `json:"lastRTT"`
- MinRTT uint64 `json:"minRTT"`
- AverageRTT uint64 `json:"averageRTT"`
- MaxRTT uint64 `json:"maxRTT"`
- StdDevRTT uint64 `json:"stddevRTT"`
+ // TODO This shall be deleted once the operator is using the latest.
+ // Using Optional to avoid validation errors when this field
+ // is not used.
+ // +optional
+ LastRTT uint64 `json:"lastRTT,omitempty"`
+ // +optional
+ MinRTT uint64 `json:"minRTT,omitempty"`
+ // +optional
+ AverageRTT uint64 `json:"averageRTT,omitempty"`
+ // +optional
+ MaxRTT uint64 `json:"maxRTT,omitempty"`
+ // +optional
+ StdDevRTT uint64 `json:"stddevRTT,omitempty"`
+
+ // +optional
+ LastRTTInNanos uint64 `json:"lastRTTInNanos,omitempty"`
+ // +optional
+ MinRTTInNanos uint64 `json:"minRTTInNanos,omitempty"`
+ // +optional
+ AverageRTTInNanos uint64 `json:"averageRTTInNanos,omitempty"`
+ // +optional
+ MaxRTTInNanos uint64 `json:"maxRTTInNanos,omitempty"`
+ // +optional
+ StdDevRTTInNanos uint64 `json:"stddevRTTInNanos,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
