From 7c497532b2afd22929b402c0fff861c40265b83e Mon Sep 17 00:00:00 2001 From: Jim Minter Date: Tue, 13 Jun 2017 12:49:00 +0100 Subject: [PATCH] update templates to use template.openshift.io/expose-uri --- openshift/templates/django-postgresql-persistent.json | 5 ++++- openshift/templates/django-postgresql.json | 5 ++++- openshift/templates/django.json | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/openshift/templates/django-postgresql-persistent.json b/openshift/templates/django-postgresql-persistent.json index 152bf1c..180eeb9 100644 --- a/openshift/templates/django-postgresql-persistent.json +++ b/openshift/templates/django-postgresql-persistent.json @@ -58,7 +58,10 @@ "kind": "Route", "apiVersion": "v1", "metadata": { - "name": "${NAME}" + "name": "${NAME}", + "annotations": { + "template.openshift.io/expose-uri": "http://{.spec.host}{.spec.path}" + } }, "spec": { "host": "${APPLICATION_DOMAIN}", diff --git a/openshift/templates/django-postgresql.json b/openshift/templates/django-postgresql.json index f3b5f97..da79c8d 100644 --- a/openshift/templates/django-postgresql.json +++ b/openshift/templates/django-postgresql.json @@ -58,7 +58,10 @@ "kind": "Route", "apiVersion": "v1", "metadata": { - "name": "${NAME}" + "name": "${NAME}", + "annotations": { + "template.openshift.io/expose-uri": "http://{.spec.host}{.spec.path}" + } }, "spec": { "host": "${APPLICATION_DOMAIN}", diff --git a/openshift/templates/django.json b/openshift/templates/django.json index 4293d62..244c9b7 100644 --- a/openshift/templates/django.json +++ b/openshift/templates/django.json @@ -55,7 +55,10 @@ "kind": "Route", "apiVersion": "v1", "metadata": { - "name": "${NAME}" + "name": "${NAME}", + "annotations": { + "template.openshift.io/expose-uri": "http://{.spec.host}{.spec.path}" + } }, "spec": { "host": "${APPLICATION_DOMAIN}",