Skip to content

Commit 5f73168

Browse files
committed
Update samples
1 parent 9de0e78 commit 5f73168

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/domain-template.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ spec:
5454
%EXPOSE_ADMIN_PORT_PREFIX%- channelName: default
5555
%EXPOSE_ADMIN_PORT_PREFIX% nodePort: %ADMIN_NODE_PORT%
5656
# Uncomment to export the T3Channel as a service
57-
%EXPOSE_T3_CHANNEL_PREFIX%exportedNetworkAccessPoints:
5857
%EXPOSE_T3_CHANNEL_PREFIX%- channelName: T3Channel
5958
# clusters is used to configure the desired behavior for starting member servers of a cluster.
6059
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,17 @@ function createFiles {
252252
# Generate the yaml to create the domain resource
253253
echo Generating ${dcrOutput}
254254

255+
exposeAnyChannelPrefix="${disabledPrefix}"
255256
if [ "${exposeAdminT3Channel}" = true ]; then
256257
exposeAdminT3ChannelPrefix="${enabledPrefix}"
258+
exposeAnyChannelPrefix="${enabledPrefix}"
257259
else
258260
exposeAdminT3ChannelPrefix="${disabledPrefix}"
259261
fi
260262

261263
if [ "${exposeAdminNodePort}" = true ]; then
262264
exposeAdminNodePortPrefix="${enabledPrefix}"
265+
exposeAnyChannelPrefix="${enabledPrefix}"
263266
else
264267
exposeAdminNodePortPrefix="${disabledPrefix}"
265268
fi
@@ -274,10 +277,11 @@ function createFiles {
274277
sed -i -e "s:%WEBLOGIC_IMAGE_PULL_POLICY%:${imagePullPolicy}:g" ${dcrOutput}
275278
sed -i -e "s:%WEBLOGIC_IMAGE_PULL_SECRET_NAME%:${imagePullSecretName}:g" ${dcrOutput}
276279
sed -i -e "s:%INITIAL_MANAGED_SERVER_REPLICAS%:${initialManagedServerReplicas}:g" ${dcrOutput}
277-
sed -i -e "s:%EXPOSE_T3_CHANNEL_PREFIX%:${exposeAdminT3ChannelPrefix}:g" ${dcrOutput}
278-
sed -i -e "s:%CLUSTER_NAME%:${clusterName}:g" ${dcrOutput}
280+
sed -i -e "s:%EXPOSE_ANY_CHANNEL_PREFIX%:${exposeAnyChannelPrefix}:g" ${dcrOutput}
279281
sed -i -e "s:%EXPOSE_ADMIN_PORT_PREFIX%:${exposeAdminNodePortPrefix}:g" ${dcrOutput}
280282
sed -i -e "s:%ADMIN_NODE_PORT%:${adminNodePort}:g" ${dcrOutput}
283+
sed -i -e "s:%EXPOSE_T3_CHANNEL_PREFIX%:${exposeAdminT3ChannelPrefix}:g" ${dcrOutput}
284+
sed -i -e "s:%CLUSTER_NAME%:${clusterName}:g" ${dcrOutput}
281285
sed -i -e "s:%JAVA_OPTIONS%:${javaOptions}:g" ${dcrOutput}
282286
sed -i -e "s:%SERVER_START_POLICY%:${serverStartPolicy}:g" ${dcrOutput}
283287
sed -i -e "s:%LOG_HOME%:${logHome}:g" ${dcrOutput}

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/domain-template.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,18 @@ spec:
6161
# "RUNNING" means the listed server will be started up to "RUNNING" mode
6262
# "ADMIN" means the listed server will be start up to "ADMIN" mode
6363
serverStartState: "RUNNING"
64-
# The Admin Server's NodePort
65-
%EXPOSE_ADMIN_PORT_PREFIX%nodePort: %ADMIN_NODE_PORT%
66-
# Uncomment to export the T3Channel as a service
67-
%EXPOSE_T3_CHANNEL_PREFIX%exportedNetworkAccessPoints:
68-
%EXPOSE_T3_CHANNEL_PREFIX% T3Channel: {}
64+
%EXPOSE_ANY_CHANNEL_PREFIX%adminService:
65+
%EXPOSE_ANY_CHANNEL_PREFIX% channels:
66+
# The Admin Server's NodePort
67+
%EXPOSE_ADMIN_PORT_PREFIX%- channelName: default
68+
%EXPOSE_ADMIN_PORT_PREFIX% nodePort: %ADMIN_NODE_PORT%
69+
# Uncomment to export the T3Channel as a service
70+
%EXPOSE_T3_CHANNEL_PREFIX%- channelName: T3Channel
6971
# clusters is used to configure the desired behavior for starting member servers of a cluster.
7072
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
7173
clusters:
72-
- clusterName: %CLUSTER_NAME%
73-
serverStartState: "RUNNING"
74-
replicas: %INITIAL_MANAGED_SERVER_REPLICAS%
74+
- clusterName: %CLUSTER_NAME%
75+
serverStartState: "RUNNING"
76+
replicas: %INITIAL_MANAGED_SERVER_REPLICAS%
7577
# The number of managed servers to start for unlisted clusters
7678
# replicas: 1

0 commit comments

Comments
 (0)