Skip to content

Commit 589232f

Browse files
committed
Minor fix to default pvc
Signed-off-by: doxiao <[email protected]>
1 parent 4ec61ad commit 589232f

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ adminServerName: admin-server
1515
domainUID: domain1
1616

1717
# Home of the WebLogic domain
18-
# By default, this is set to /shared/domains/domainUID
19-
domainHome: /shared/domains/domain1
18+
# The default is /shared/domains/<domainUID>
19+
domainHome:
2020

2121
# Type of WebLogic Cluster
2222
# Legal values are "CONFIGURED" or "DYNAMIC"
@@ -56,16 +56,17 @@ imagePullPolicy: IfNotPresent
5656
productionModeEnabled: true
5757

5858
# Name of the Kubernetes secret for the Admin Server's username and password
59-
# The name must be lowercase
60-
weblogicCredentialsSecretName: domain1-weblogic-credentials
59+
# The name must be lowercase.
60+
# The default is <domainUID>-weblogic-credentials.
61+
weblogicCredentialsSecretName:
6162

62-
# Whether to include server .out to the pod's stdout, default is true
63+
# Whether to include server .out to the pod's stdout.
64+
# The default is true.
6365
includeServerOutInPodLog: true
6466

6567
# The in-pod name of the directory to store the domain, node manager, server logs, and server .out
6668
# files in.
67-
# If not specified or empty, domain log file, server logs, server out, and node manager log files
68-
# will be stored in the default logHome location of /shared/logs/<domainUID>/.
69+
# The default is /shared/logs/<domainUID>/.
6970
logHome:
7071

7172
# Port for the T3Channel of the NetworkAccessPoint
@@ -93,7 +94,8 @@ namespace: default
9394
javaOptions: -Dweblogic.StdoutDebugEnabled=false
9495

9596
# Name of the persistent volume claim
96-
persistentVolumeClaimName: weblogic-sample-pvc
97+
# The default is <domainUID>-weblogic-sample-pvc
98+
persistentVolumeClaimName:
9799

98100
# Mount path of the domain persistent volume.
99101
domainPVMountPath: /shared

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ function initialize {
231231
domainUID \
232232
clusterName \
233233
managedServerNameBase \
234-
weblogicCredentialsSecretName \
235234
namespace \
236235
t3PublicAddress \
237236
includeServerOutInPodLog \
@@ -295,10 +294,18 @@ function createYamlFiles {
295294
domainPVMountPath="/shared"
296295
fi
297296

297+
if [ -z "${domainHome}" ]; then
298+
domainHome="${domainPVMountPath}/domains/${domainUID}"
299+
fi
300+
298301
if [ -z "${logHome}" ]; then
299302
logHome="${domainPVMountPath}/logs/${domainUID}"
300303
fi
301304

305+
if [ -z "${weblogicCredentialsSecretName}" ]; then
306+
weblogicCredentialsSecretName="${domainUID}-weblogic-credentials"
307+
fi
308+
302309
# Use the default value if not defined.
303310
if [ -z "${createDomainScriptsMountPath}" ]; then
304311
createDomainScriptsMountPath="/u01/weblogic"
@@ -311,7 +318,7 @@ function createYamlFiles {
311318

312319
# Use the default value if not defined.
313320
if [ -z "${persistentVolumeClaimName}" ]; then
314-
persistentVolumeClaimName=weblogic-sample-domain-pvc
321+
persistentVolumeClaimName=${domainUID}-weblogic-sample-pvc
315322
fi
316323

317324
# Must escape the ':' value in image for sed to properly parse and replace

0 commit comments

Comments
 (0)