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: toc/rfc/rfc-draft-generic-per-route-features.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,8 @@ The following constraints apply (types are as specified in [RFC 8259](https://rf
36
36
37
37
#### CLI
38
38
39
-
Support for a generic map MUST be added to the manifest. There MAY be either individual command line
40
-
flags or a single flag which supports generic key-value pairs for the `map-route` sub-command.
39
+
There MAY be either individual command line flags or a single flag which supports generic key-value
40
+
pairs for the `map-route` sub-command.
41
41
42
42
#### Cloud Controller
43
43
@@ -47,6 +47,25 @@ rejected with an appropriate error message if the provided map is invalid and MU
47
47
as-is otherwise. The API also MUST store the map as a generic key-value map to ensure changes to
48
48
the map do not require a change to the database schema.
49
49
50
+
Support for a generic map MUST be added to the manifest. The updated routes section in a manifest
51
+
MAY look like this:
52
+
53
+
```yml
54
+
version: 1
55
+
applications:
56
+
- name: test
57
+
routes:
58
+
- route: example.com
59
+
options:
60
+
loadbalancing-algorithm: round-robin
61
+
connection-limit: 15
62
+
session-cookie: FOOBAR
63
+
trim-path: true
64
+
- route: www.example.com/foo
65
+
protocol: http2
66
+
- route: tcp-example.com:1234
67
+
```
68
+
50
69
Implementation details:
51
70
* Add a new field to the [route model](https://github.com/cloudfoundry/cloud_controller_ng/blob/main/app/models/runtime/route.rb).
52
71
* Add validation to the [route validator](https://github.com/cloudfoundry/cloud_controller_ng/blob/e719d017ea4625397a97c2c14352ebdee66febe9/lib/cloud_controller/route_validator.rb#L2).
0 commit comments