Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit d49dd08

Browse files
authored
Fix Route API version (#65)
* Fix route api version * Fix Deployments' selectors
1 parent c273967 commit d49dd08

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

samples/web-nodejs-with-db-sample/mongo-db.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ items:
1010
name: mongo
1111
name: mongo-controller
1212
spec:
13+
selector:
14+
matchLabels:
15+
name: mongo
1316
template:
1417
metadata:
1518
labels:
@@ -36,7 +39,6 @@ items:
3639
name: mongo
3740
labels:
3841
name: mongo
39-
name: mongo
4042
spec:
4143
ports:
4244
- port: 27017

samples/web-nodejs-with-db-sample/nodejs-app.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ objects:
1414
spec:
1515
replicas: 1
1616
selector:
17-
name: web
17+
matchLabels:
18+
app: nodejs
1819
template:
1920
metadata:
2021
labels:
@@ -64,7 +65,7 @@ objects:
6465
selector:
6566
app: nodejs
6667
-
67-
apiVersion: v1
68+
apiVersion: route.openshift.io/v1
6869
kind: Route
6970
metadata:
7071
name: che

0 commit comments

Comments
 (0)