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
@@ -24052,9 +24052,16 @@
24052
24052
"description": "Path that the router watches for, to route traffic for to the service. Optional"
24053
24053
},
24054
24054
"to": {
24055
-
"$ref": "v1.ObjectReference",
24055
+
"$ref": "v1.RouteTargetReference",
24056
24056
"description": "To is an object the route points to. Only the Service kind is allowed, and it will be defaulted to Service."
24057
24057
},
24058
+
"alternateBackends": {
24059
+
"type": "array",
24060
+
"items": {
24061
+
"$ref": "v1.RouteTargetReference"
24062
+
},
24063
+
"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"
24064
+
},
24058
24065
"port": {
24059
24066
"$ref": "v1.RoutePort",
24060
24067
"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."
@@ -24065,6 +24072,30 @@
24065
24072
}
24066
24073
}
24067
24074
},
24075
+
"v1.RouteTargetReference": {
24076
+
"id": "v1.RouteTargetReference",
24077
+
"description": "RouteTargetReference specifies the target that resolve into endpoints. Only the 'Service' kind is allowed. Use 'weight' field to emphasize one over others.",
24078
+
"required": [
24079
+
"kind",
24080
+
"name",
24081
+
"weight"
24082
+
],
24083
+
"properties": {
24084
+
"kind": {
24085
+
"type": "string",
24086
+
"description": "The kind of target that the route is referring to. Currently, only 'Service' is allowed"
24087
+
},
24088
+
"name": {
24089
+
"type": "string",
24090
+
"description": "Name of the service/target that is being referred to. e.g. name of the service"
24091
+
},
24092
+
"weight": {
24093
+
"type": "integer",
24094
+
"format": "int32",
24095
+
"description": "Weight as an integer between 1 and 256 that specifies the target's relative weight against other target reference objects"
24096
+
}
24097
+
}
24098
+
},
24068
24099
"v1.RoutePort": {
24069
24100
"id": "v1.RoutePort",
24070
24101
"description": "RoutePort defines a port mapping from a router to an endpoint in the service endpoints.",
0 commit comments