summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/files/examples/v1.5/db-templates/postgresql-persistent-template.json
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-06-30 11:22:53 -0400
committerScott Dodson <sdodson@redhat.com>2017-06-30 11:22:53 -0400
commit2e39bc8a2508a075544307bdcb210d6e667760b0 (patch)
tree475889be1efb9f855320373b8d391657b3b3440a /roles/openshift_examples/files/examples/v1.5/db-templates/postgresql-persistent-template.json
parent10ca432b753bb837a462b7c9e61c4acea34c115b (diff)
downloadopenshift-2e39bc8a2508a075544307bdcb210d6e667760b0.tar.gz
openshift-2e39bc8a2508a075544307bdcb210d6e667760b0.tar.bz2
openshift-2e39bc8a2508a075544307bdcb210d6e667760b0.tar.xz
openshift-2e39bc8a2508a075544307bdcb210d6e667760b0.zip
Sync latest image streams and templates for v1.5
Diffstat (limited to 'roles/openshift_examples/files/examples/v1.5/db-templates/postgresql-persistent-template.json')
-rw-r--r--roles/openshift_examples/files/examples/v1.5/db-templates/postgresql-persistent-template.json11
1 files changed, 9 insertions, 2 deletions
diff --git a/roles/openshift_examples/files/examples/v1.5/db-templates/postgresql-persistent-template.json b/roles/openshift_examples/files/examples/v1.5/db-templates/postgresql-persistent-template.json
index 242212d6f..32dc93a95 100644
--- a/roles/openshift_examples/files/examples/v1.5/db-templates/postgresql-persistent-template.json
+++ b/roles/openshift_examples/files/examples/v1.5/db-templates/postgresql-persistent-template.json
@@ -24,7 +24,11 @@
"kind": "Secret",
"apiVersion": "v1",
"metadata": {
- "name": "${DATABASE_SERVICE_NAME}"
+ "name": "${DATABASE_SERVICE_NAME}",
+ "annotations": {
+ "template.openshift.io/expose-username": "{.data['database-user']}",
+ "template.openshift.io/expose-password": "{.data['database-password']}"
+ }
},
"stringData" : {
"database-user" : "${POSTGRESQL_USER}",
@@ -36,7 +40,10 @@
"apiVersion": "v1",
"metadata": {
"name": "${DATABASE_SERVICE_NAME}",
- "creationTimestamp": null
+ "creationTimestamp": null,
+ "annotations": {
+ "template.openshift.io/expose-uri": "postgres://{.spec.clusterIP}:{.spec.ports[?(.name==\"postgresql\")].port}"
+ }
},
"spec": {
"ports": [