You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/swagger-spec/oapi-v1.json
+32-1Lines changed: 32 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24918,9 +24918,16 @@
24918
24918
"description": "Path that the router watches for, to route traffic for to the service. Optional"
24919
24919
},
24920
24920
"to": {
24921
-
"$ref": "v1.ObjectReference",
24921
+
"$ref": "v1.RouteTargetReference",
24922
24922
"description": "To is an object the route points to. Only the Service kind is allowed, and it will be defaulted to Service."
24923
24923
},
24924
+
"alternateBackends": {
24925
+
"type": "array",
24926
+
"items": {
24927
+
"$ref": "v1.RouteTargetReference"
24928
+
},
24929
+
"description": "AlternateBackends is an extension of the 'to' field. If more than one service needs to be pointed to, then use this field. Use the weight field in RouteTargetReference object to specify relative preference"
24930
+
},
24924
24931
"port": {
24925
24932
"$ref": "v1.RoutePort",
24926
24933
"description": "If specified, the port to be used by the router. Most routers will use all endpoints exposed by the service by default - set this value to instruct routers which port to use."
@@ -24931,6 +24938,30 @@
24931
24938
}
24932
24939
}
24933
24940
},
24941
+
"v1.RouteTargetReference": {
24942
+
"id": "v1.RouteTargetReference",
24943
+
"description": "RouteTargetReference specifies the target that resolve into endpoints. Only the 'Service' kind is allowed. Use 'weight' field to emphasize one over others.",
24944
+
"required": [
24945
+
"kind",
24946
+
"name",
24947
+
"weight"
24948
+
],
24949
+
"properties": {
24950
+
"kind": {
24951
+
"type": "string",
24952
+
"description": "The kind of target that the route is referring to. Currently, only 'Service' is allowed"
24953
+
},
24954
+
"name": {
24955
+
"type": "string",
24956
+
"description": "Name of the service/target that is being referred to. e.g. name of the service"
24957
+
},
24958
+
"weight": {
24959
+
"type": "integer",
24960
+
"format": "int32",
24961
+
"description": "Weight as an integer between 1 and 256 that specifies the target's relative weight against other target reference objects"
24962
+
}
24963
+
}
24964
+
},
24934
24965
"v1.RoutePort": {
24935
24966
"id": "v1.RoutePort",
24936
24967
"description": "RoutePort defines a port mapping from a router to an endpoint in the service endpoints.",
0 commit comments