File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,17 @@ Some suitable test values for the parameters are
57
57
* REF: master
58
58
* CONTEXT_DIR: quarkus-quickstarts/getting-started-3.9.2-uberjar
59
59
* APPNAME: quarkus-quickstart
60
+ * TARGET_PORT: 8080
61
+ * SERVICE_PORT: 8080
60
62
61
63
oc process \
62
64
-p JDK_VERSION=17 \
63
65
-p APP_URI=https://github.com/jboss-container-images/openjdk-test-applications \
64
66
-p REF=master \
65
67
-p CONTEXT_DIR=quarkus-quickstarts/getting-started-3.9.2-uberjar \
66
68
-p APPNAME=quarkus-quickstart \
69
+ -p TARGET_PORT=8080 \
70
+ -p SERVICE_PORT=8080 \
67
71
templates/jlink-app-template \
68
72
| oc create -f -
69
73
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ parameters:
31
31
required : true
32
32
- description : Target port for the created Route
33
33
name : TARGET_PORT
34
+ value : " 8080"
35
+ required : true
36
+ - description : Port for the created Service to listen on
37
+ name : SERVICE_PORT
38
+ value : " 8181"
34
39
required : true
35
40
message : " ... The GitHub webhook secret is ${GITHUB_WEBHOOK_SECRET} ..."
36
41
# #############################################################################
@@ -267,8 +272,9 @@ objects:
267
272
app : ${APPNAME}-jlinked-app
268
273
ports :
269
274
- protocol : TCP
270
- port : 80
271
- targetPort : 8080
275
+ name : target-${TARGET_PORT}-tcp
276
+ port : ${{SERVICE_PORT}}
277
+ targetPort : ${{TARGET_PORT}}
272
278
- apiVersion : route.openshift.io/v1
273
279
kind : Route
274
280
metadata :
You can’t perform that action at this time.
0 commit comments