File tree Expand file tree Collapse file tree 5 files changed +7
-35
lines changed
kubernetes/samples/scripts Expand file tree Collapse file tree 5 files changed +7
-35
lines changed Original file line number Diff line number Diff line change @@ -231,24 +231,6 @@ function validateServerStartPolicy {
231
231
fi
232
232
}
233
233
234
- #
235
- # Function to validate the cluster type value
236
- #
237
- function validateClusterType {
238
- validateInputParamsSpecified clusterType
239
- if [ ! -z " ${clusterType} " ]; then
240
- case ${clusterType} in
241
- " CONFIGURED" )
242
- ;;
243
- " DYNAMIC" )
244
- ;;
245
- * )
246
- validationError " Invalid value for clusterType: ${clusterType} . Valid values are 'CONFIGURED' and 'DYNAMIC'."
247
- ;;
248
- esac
249
- fi
250
- }
251
-
252
234
#
253
235
# Function to validate the weblogic domain storage reclaim policy
254
236
#
@@ -388,7 +370,6 @@ function validateCommonInputs {
388
370
validateClusterName
389
371
validateWeblogicCredentialsSecretName
390
372
validateServerStartPolicy
391
- validateClusterType
392
373
validateWeblogicImagePullPolicy
393
374
validateWeblogicImagePullSecretName
394
375
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ DB_PORT=1527
11
11
DEBUG_FLAG =true
12
12
DERBY_FLAG =true
13
13
PRODUCTION_MODE_ENABLED =%PRODUCTION_MODE_ENABLED%
14
- CLUSTER_TYPE =%CLUSTER_TYPE%
14
+ CLUSTER_TYPE =DYNAMIC
15
15
JAVA_OPTIONS =%JAVA_OPTIONS%
16
16
T3_CHANNEL_PORT =%T3_CHANNEL_PORT%
17
17
T3_PUBLIC_ADDRESS =%T3_PUBLIC_ADDRESS%
Original file line number Diff line number Diff line change 44
44
- name : CLUSTER_NAME
45
45
value : " %CLUSTER_NAME%"
46
46
- name : CLUSTER_TYPE
47
- value : " %CLUSTER_TYPE% "
47
+ value : " DYNAMIC "
48
48
- name : T3_CHANNEL_PORT
49
49
value : " %T3_CHANNEL_PORT%"
50
50
- name : T3_PUBLIC_ADDRESS
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ function createDomainConfigmap {
153
153
echo domainName: $domainName >> ${externalFilesTmpDir} /create-domain-inputs.yaml
154
154
155
155
if [ -f ${externalFilesTmpDir} /prepare.sh ]; then
156
- sh ${externalFilesTmpDir} /prepare.sh -t ${clusterType} - i ${externalFilesTmpDir}
156
+ sh ${externalFilesTmpDir} /prepare.sh -i ${externalFilesTmpDir}
157
157
fi
158
158
159
159
# create the configmap and label it properly
Original file line number Diff line number Diff line change 6
6
# Perform preparation based on the specified cluster type
7
7
8
8
function usage {
9
- echo usage: ${script} -t clusterTpe - i file [-h]
9
+ echo usage: ${script} -i file [-h]
10
10
echo " -i Directory, must be specified."
11
- echo " -t Cluster type, CONFIGURED or DYNAMIC, default is DYNAMIC."
12
11
echo " -h Help"
13
12
exit $1
14
13
}
15
14
16
15
17
- while getopts " hi:t: " opt; do
16
+ while getopts " hi:" opt; do
18
17
case $opt in
19
18
i) externalFilesTmpDir=" ${OPTARG} "
20
19
;;
21
- t) clusterType=" ${OPTARG} "
22
- ;;
23
20
h) usage 0
24
21
;;
25
22
* ) usage 1
26
23
;;
27
24
esac
28
25
done
29
26
30
- echo Preparing the scripts with clusterType $clusterType
31
-
32
- if [ " ${clusterType} " = " CONFIGURED" ]; then
33
- source_model=${externalFilesTmpDir} /wdt_model_configured.yaml
34
- else
35
- source_model=${externalFilesTmpDir} /wdt_model_dynamic.yaml
36
- fi
27
+ echo Preparing the model script
37
28
38
- cp $source_model ${externalFilesTmpDir} /wdt_model.yaml
29
+ cp ${externalFilesTmpDir} /wdt_model_dynamic.yaml ${externalFilesTmpDir} /wdt_model.yaml
39
30
You can’t perform that action at this time.
0 commit comments