Skip to content

Commit 1020cea

Browse files
committed
rfc: move manifest to CC and add example
1 parent 3f8caa9 commit 1020cea

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

toc/rfc/rfc-draft-generic-per-route-features.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ The following constraints apply (types are as specified in [RFC 8259](https://rf
3636

3737
#### CLI
3838

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.
4141

4242
#### Cloud Controller
4343

@@ -47,6 +47,25 @@ rejected with an appropriate error message if the provided map is invalid and MU
4747
as-is otherwise. The API also MUST store the map as a generic key-value map to ensure changes to
4848
the map do not require a change to the database schema.
4949

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+
5069
Implementation details:
5170
* Add a new field to the [route model](https://github.com/cloudfoundry/cloud_controller_ng/blob/main/app/models/runtime/route.rb).
5271
* 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

Comments
 (0)