Skip to content

Commit 6800d9f

Browse files
authored
Add custom root links (#534)
1 parent d0bdbc5 commit 6800d9f

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

jobs/cloud_controller_ng/spec

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ provides:
231231
- cc.app_instance_stopping_state
232232
- cc.deprecated_stacks
233233
- cc.temporary_enable_deprecated_thin_webserver
234+
- cc.custom_root_links
234235

235236
consumes:
236237
- name: database
@@ -318,6 +319,12 @@ properties:
318319
cc.info.custom:
319320
description: "Custom attribute keys and values for the /v2/info and /v3/info endpoints"
320321

322+
cc.custom_root_links:
323+
description: "Array of custom links to be added to the root '/' endpoint. These will override the default links if the same name is used."
324+
example: |
325+
- name: my-service
326+
href: https://my-service.example.com
327+
321328
cc.nginx.ip:
322329
description: "IP address for nginx"
323330
default: ""

jobs/cloud_controller_ng/templates/cloud_controller_ng.yml.erb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ app_domains: <%=
8585
app_domains.to_json
8686
%>
8787

88+
<% if_p("cc.custom_root_links") do |custom_root_links| %>
89+
custom_root_links: <%=
90+
custom_root_links = p("cc.custom_root_links").flatten
91+
custom_root_links.to_json
92+
%>
93+
<% end %>
94+
8895
reserved_private_domains: <%= p("cc.reserved_private_domains", nil) %>
8996
disable_private_domain_cross_space_context_path_route_sharing: <%= p("cc.disable_private_domain_cross_space_context_path_route_sharing", false) %>
9097

0 commit comments

Comments
 (0)