From 36aeea727152e4be5458b4f01a6b02627245b8f0 Mon Sep 17 00:00:00 2001 From: Sally O'Malley Date: Wed, 19 Oct 2016 13:39:23 -0400 Subject: [PATCH] group services in quickstarts --- openshift/templates/nodejs-mongodb-persistent.json | 3 ++- openshift/templates/nodejs-mongodb.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openshift/templates/nodejs-mongodb-persistent.json b/openshift/templates/nodejs-mongodb-persistent.json index 8ac10fe..68189b1 100644 --- a/openshift/templates/nodejs-mongodb-persistent.json +++ b/openshift/templates/nodejs-mongodb-persistent.json @@ -19,7 +19,8 @@ "metadata": { "name": "${NAME}", "annotations": { - "description": "Exposes and load balances the application pods" + "description": "Exposes and load balances the application pods", + "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"namespace\": \"\", \"kind\": \"Service\"}]" } }, "spec": { diff --git a/openshift/templates/nodejs-mongodb.json b/openshift/templates/nodejs-mongodb.json index 6ab4a17..0ddf090 100644 --- a/openshift/templates/nodejs-mongodb.json +++ b/openshift/templates/nodejs-mongodb.json @@ -19,7 +19,8 @@ "metadata": { "name": "${NAME}", "annotations": { - "description": "Exposes and load balances the application pods" + "description": "Exposes and load balances the application pods", + "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"namespace\": \"\", \"kind\": \"Service\"}]" } }, "spec": {