fix DestinationsStatus api
@@ -43,6 +43,7 @@ func (resourceManager *ResourceManager) GetHttpRouteListChannel(listOptions ...c
type HttpRoute struct {
*v1alpha1.HttpRouteSpec `json:",inline"`
+ DestinationsStatus []v1alpha1.HttpRouteDestinationStatus `json:"destinationsStatus,omitempty"`
Name string `json:"name"`
Tenant string `json:"tenant"`
}
@@ -77,6 +78,7 @@ func BuildHttpRouteFromResource(route *v1alpha1.HttpRoute) *HttpRoute {
return &HttpRoute{
HttpRouteSpec: &route.Spec,
+ DestinationsStatus: route.Status.DestinationsStatus,
Name: route.Name,
Tenant: tenantName,
}
