summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/files/examples/v1.4/db-templates/mongodb-persistent-template.json
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-06-30 16:51:00 -0400
committerGitHub <noreply@github.com>2017-06-30 16:51:00 -0400
commit31005495f571e02c671b90d2b4c0bb2d57fe4457 (patch)
tree4de7d3bf4363a2a88afc0e870baa5ad0b630c4da /roles/openshift_examples/files/examples/v1.4/db-templates/mongodb-persistent-template.json
parenta5e1e1fb2b068251c050722fd5f742dd3a92d93c (diff)
parent94feef04f73d970bb6ec45afa3629e368e6c7df6 (diff)
downloadopenshift-31005495f571e02c671b90d2b4c0bb2d57fe4457.tar.gz
openshift-31005495f571e02c671b90d2b4c0bb2d57fe4457.tar.bz2
openshift-31005495f571e02c671b90d2b4c0bb2d57fe4457.tar.xz
openshift-31005495f571e02c671b90d2b4c0bb2d57fe4457.zip
Merge pull request #4659 from sdodson/image-stream-sync
Sync all content
Diffstat (limited to 'roles/openshift_examples/files/examples/v1.4/db-templates/mongodb-persistent-template.json')
-rw-r--r--roles/openshift_examples/files/examples/v1.4/db-templates/mongodb-persistent-template.json12
1 files changed, 10 insertions, 2 deletions
diff --git a/roles/openshift_examples/files/examples/v1.4/db-templates/mongodb-persistent-template.json b/roles/openshift_examples/files/examples/v1.4/db-templates/mongodb-persistent-template.json
index 0656219fb..e5ba43669 100644
--- a/roles/openshift_examples/files/examples/v1.4/db-templates/mongodb-persistent-template.json
+++ b/roles/openshift_examples/files/examples/v1.4/db-templates/mongodb-persistent-template.json
@@ -24,7 +24,12 @@
"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']}",
+ "template.openshift.io/expose-admin_password": "{.data['database-admin-password']}"
+ }
},
"stringData" : {
"database-user" : "${MONGODB_USER}",
@@ -37,7 +42,10 @@
"apiVersion": "v1",
"metadata": {
"name": "${DATABASE_SERVICE_NAME}",
- "creationTimestamp": null
+ "creationTimestamp": null,
+ "annotations": {
+ "template.openshift.io/expose-uri": "mongodb://{.spec.clusterIP}:{.spec.ports[?(.name==\"mongo\")].port}"
+ }
},
"spec": {
"ports": [