From 193f16342004385761d5e7c6ac0e43d8a9bcca3f Mon Sep 17 00:00:00 2001 From: Sergii Leshchenko Date: Wed, 18 Nov 2020 09:41:22 +0200 Subject: [PATCH 1/2] Fix route api version --- samples/web-nodejs-with-db-sample/nodejs-app.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/web-nodejs-with-db-sample/nodejs-app.yaml b/samples/web-nodejs-with-db-sample/nodejs-app.yaml index a7c9319..2096885 100644 --- a/samples/web-nodejs-with-db-sample/nodejs-app.yaml +++ b/samples/web-nodejs-with-db-sample/nodejs-app.yaml @@ -64,7 +64,7 @@ objects: selector: app: nodejs - - apiVersion: v1 + apiVersion: route.openshift.io/v1 kind: Route metadata: name: che From bdee7bd2e22b1c547f7202c684d154c50d024e4b Mon Sep 17 00:00:00 2001 From: Sergii Leshchenko Date: Wed, 18 Nov 2020 09:57:13 +0200 Subject: [PATCH 2/2] Fix Deployments' selectors --- samples/web-nodejs-with-db-sample/mongo-db.yaml | 4 +++- samples/web-nodejs-with-db-sample/nodejs-app.yaml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/samples/web-nodejs-with-db-sample/mongo-db.yaml b/samples/web-nodejs-with-db-sample/mongo-db.yaml index 3519a5e..8d1003f 100644 --- a/samples/web-nodejs-with-db-sample/mongo-db.yaml +++ b/samples/web-nodejs-with-db-sample/mongo-db.yaml @@ -10,6 +10,9 @@ items: name: mongo name: mongo-controller spec: + selector: + matchLabels: + name: mongo template: metadata: labels: @@ -36,7 +39,6 @@ items: name: mongo labels: name: mongo - name: mongo spec: ports: - port: 27017 diff --git a/samples/web-nodejs-with-db-sample/nodejs-app.yaml b/samples/web-nodejs-with-db-sample/nodejs-app.yaml index 2096885..cc75d95 100644 --- a/samples/web-nodejs-with-db-sample/nodejs-app.yaml +++ b/samples/web-nodejs-with-db-sample/nodejs-app.yaml @@ -14,7 +14,8 @@ objects: spec: replicas: 1 selector: - name: web + matchLabels: + app: nodejs template: metadata: labels: