Skip to content

Commit 7c49753

Browse files
author
Jim Minter
committed
update templates to use template.openshift.io/expose-uri
1 parent cedcc68 commit 7c49753

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

openshift/templates/django-postgresql-persistent.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@
5858
"kind": "Route",
5959
"apiVersion": "v1",
6060
"metadata": {
61-
"name": "${NAME}"
61+
"name": "${NAME}",
62+
"annotations": {
63+
"template.openshift.io/expose-uri": "http://{.spec.host}{.spec.path}"
64+
}
6265
},
6366
"spec": {
6467
"host": "${APPLICATION_DOMAIN}",

openshift/templates/django-postgresql.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@
5858
"kind": "Route",
5959
"apiVersion": "v1",
6060
"metadata": {
61-
"name": "${NAME}"
61+
"name": "${NAME}",
62+
"annotations": {
63+
"template.openshift.io/expose-uri": "http://{.spec.host}{.spec.path}"
64+
}
6265
},
6366
"spec": {
6467
"host": "${APPLICATION_DOMAIN}",

openshift/templates/django.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
"kind": "Route",
5656
"apiVersion": "v1",
5757
"metadata": {
58-
"name": "${NAME}"
58+
"name": "${NAME}",
59+
"annotations": {
60+
"template.openshift.io/expose-uri": "http://{.spec.host}{.spec.path}"
61+
}
5962
},
6063
"spec": {
6164
"host": "${APPLICATION_DOMAIN}",

0 commit comments

Comments
 (0)