Skip to content

A variable to expand to the default domain in templates #3910

@chmouel

Description

@chmouel

It would be nice if it was possible in template to expand to the default routingConfig.Subdomain to make it easier to share complete templates for template authors.

if we have a template like this :

apiVersion: v1
kind: Route
metadata:
  labels:
    name: hello-openshift
  name: hello-openshift-route
spec:
  host: hello.${defaultSubdomain}
  tls:
    termination: edge
  to:
    name: hello-openshift-service

the defaultSubdomain will be expanded to what is configured in routingConfig.subdomain (or the default which is currently router.default.local)

I am not sure if we can have a 'reserved' keyword to not have conflict if there is a variable actually named like that, or have something like openshift.RoutingConfig.subDomain for openshift reserved variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions