diff --git a/jobs/cloud_controller_ng/spec b/jobs/cloud_controller_ng/spec index 7d2a536b66..465d26b2ef 100644 --- a/jobs/cloud_controller_ng/spec +++ b/jobs/cloud_controller_ng/spec @@ -231,6 +231,7 @@ provides: - cc.app_instance_stopping_state - cc.deprecated_stacks - cc.temporary_enable_deprecated_thin_webserver + - cc.custom_root_links consumes: - name: database @@ -318,6 +319,12 @@ properties: cc.info.custom: description: "Custom attribute keys and values for the /v2/info and /v3/info endpoints" + cc.custom_root_links: + description: "Array of custom links to be added to the root '/' endpoint. These will override the default links if the same name is used." + example: | + - name: my-service + href: https://my-service.example.com + cc.nginx.ip: description: "IP address for nginx" default: "" diff --git a/jobs/cloud_controller_ng/templates/cloud_controller_ng.yml.erb b/jobs/cloud_controller_ng/templates/cloud_controller_ng.yml.erb index a221f15cfc..b5bfec554c 100644 --- a/jobs/cloud_controller_ng/templates/cloud_controller_ng.yml.erb +++ b/jobs/cloud_controller_ng/templates/cloud_controller_ng.yml.erb @@ -85,6 +85,13 @@ app_domains: <%= app_domains.to_json %> +<% if_p("cc.custom_root_links") do |custom_root_links| %> +custom_root_links: <%= +custom_root_links = p("cc.custom_root_links").flatten +custom_root_links.to_json +%> +<% end %> + reserved_private_domains: <%= p("cc.reserved_private_domains", nil) %> disable_private_domain_cross_space_context_path_route_sharing: <%= p("cc.disable_private_domain_cross_space_context_path_route_sharing", false) %>