You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ !-z"${weblogicDomainStorageReclaimPolicy}" ];then
133
+
case${weblogicDomainStorageReclaimPolicy}in
134
+
"Retain")
135
+
;;
136
+
"Delete")
137
+
if [ "${weblogicDomainStoragePath:0:5}"!="/tmp/" ];then
138
+
validationError "ERROR - Invalid value for weblogicDomainStorageReclaimPolicy ${weblogicDomainStorageReclaimPolicy} with weblogicDomainStoragePath ${weblogicDomainStoragePath} that is not /tmp/"
139
+
fi
140
+
;;
141
+
"Recycle")
142
+
;;
143
+
*)
144
+
validationError "Invalid value for weblogicDomainStorageReclaimPolicy: ${weblogicDomainStorageReclaimPolicy}. Valid values are Retain, Delete and Recycle."
145
+
;;
146
+
esac
147
+
fi
148
+
}
149
+
127
150
#
128
151
# Function to validate the weblogic domain storage type
129
152
#
@@ -333,6 +356,7 @@ function initialize {
333
356
validateNamespace
334
357
validateClusterName
335
358
validateWeblogicDomainStorageType
359
+
validateWeblogicDomainStorageReclaimPolicy
336
360
validateWeblogicCredentialsSecretName
337
361
validateWeblogicImagePullSecretName
338
362
validateLoadBalancer
@@ -383,6 +407,7 @@ function createYamlFiles {
383
407
sed -i -e "s:%DOMAIN_UID%:${domainUID}:g"${domainPVOutput}
384
408
sed -i -e "s:%NAMESPACE%:$namespace:g"${domainPVOutput}
385
409
sed -i -e "s:%WEBLOGIC_DOMAIN_STORAGE_PATH%:${weblogicDomainStoragePath}:g"${domainPVOutput}
410
+
sed -i -e "s:%WEBLOGIC_DOMAIN_STORAGE_RECLAIM_POLICY%:${weblogicDomainStorageReclaimPolicy}:g"${domainPVOutput}
386
411
sed -i -e "s:%WEBLOGIC_DOMAIN_STORAGE_SIZE%:${weblogicDomainStorageSize}:g"${domainPVOutput}
387
412
sed -i -e "s:%HOST_PATH_PREFIX%:${hostPathPrefix}:g"${domainPVOutput}
388
413
sed -i -e "s:%NFS_PREFIX%:${nfsPrefix}:g"${domainPVOutput}
Copy file name to clipboardExpand all lines: site/creating-domain.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,7 @@ The following parameters must be provided in the input file:
120
120
| t3PublicAddress | Public address for the t3 channel. | kubernetes |
121
121
| weblogicCredentialsSecretName | Name of the Kubernetes secret for the Administration Server's username and password. | domain1-weblogic-credentials |
122
122
| weblogicDomainStoragePath | Physical path of the storage for the domain. | no default |
123
+
| weblogicDomainStorageReclaimPolicy | Kubernetes persistent volume reclaim policy for the domain persistent storage | Retain |
123
124
| weblogicDomainStorageSize | Total storage allocated for the domain. | 10Gi |
124
125
| weblogicDomainStorageType | Type of storage for the domain. Legal values are 'NFS' and 'HOST_PATH". | HOST_PATH |
125
126
| weblogicDomainStorageNFSServer| The name of IP address of the NFS server for the domain's storage. | no default |
0 commit comments