@@ -454,6 +454,14 @@ function createYamlFiles {
454
454
enabledPrefix=" " # uncomment the feature
455
455
disabledPrefix=" # " # comment out the feature
456
456
457
+ # For backward compatability, default to "store/oracle/weblogic:12.2.1.3" if not defined in
458
+ # create-weblogic-domain-inputs.yaml
459
+ if [ -z " ${weblogicImage} " ]; then
460
+ weblogicImage=" store/oracle/weblogic:12.2.1.3"
461
+ fi
462
+ # Must escape the ':' value in weblogicImage for sed to properly parse and replace
463
+ weblogicImage=$( echo ${weblogicImage} | sed -e " s/\:/\\ \:/g" )
464
+
457
465
# Generate the yaml to create the persistent volume
458
466
echo Generating ${domainPVOutput}
459
467
@@ -491,6 +499,7 @@ function createYamlFiles {
491
499
cp ${createJobInput} ${createJobOutput}
492
500
sed -i -e " s:%NAMESPACE%:$namespace :g" ${createJobOutput}
493
501
sed -i -e " s:%WEBLOGIC_CREDENTIALS_SECRET_NAME%:${weblogicCredentialsSecretName} :g" ${createJobOutput}
502
+ sed -i -e " s:%WEBLOGIC_IMAGE%:${weblogicImage} :g" ${createJobOutput}
494
503
sed -i -e " s:%WEBLOGIC_IMAGE_PULL_SECRET_NAME%:${weblogicImagePullSecretName} :g" ${createJobOutput}
495
504
sed -i -e " s:%WEBLOGIC_IMAGE_PULL_SECRET_PREFIX%:${weblogicImagePullSecretPrefix} :g" ${createJobOutput}
496
505
sed -i -e " s:%DOMAIN_UID%:${domainUID} :g" ${createJobOutput}
@@ -511,6 +520,7 @@ function createYamlFiles {
511
520
512
521
cp ${deleteJobInput} ${deleteJobOutput}
513
522
sed -i -e " s:%NAMESPACE%:$namespace :g" ${deleteJobOutput}
523
+ sed -i -e " s:%WEBLOGIC_IMAGE%:${weblogicImage} :g" ${deleteJobOutput}
514
524
sed -i -e " s:%WEBLOGIC_CREDENTIALS_SECRET_NAME%:${weblogicCredentialsSecretName} :g" ${deleteJobOutput}
515
525
sed -i -e " s:%WEBLOGIC_IMAGE_PULL_SECRET_NAME%:${weblogicImagePullSecretName} :g" ${deleteJobOutput}
516
526
sed -i -e " s:%WEBLOGIC_IMAGE_PULL_SECRET_PREFIX%:${weblogicImagePullSecretPrefix} :g" ${deleteJobOutput}
@@ -538,7 +548,6 @@ function createYamlFiles {
538
548
sed -i -e " s:%DOMAIN_UID%:${domainUID} :g" ${dcrOutput}
539
549
sed -i -e " s:%DOMAIN_NAME%:${domainName} :g" ${dcrOutput}
540
550
sed -i -e " s:%ADMIN_SERVER_NAME%:${adminServerName} :g" ${dcrOutput}
541
- weblogicImage=$( echo ${weblogicImage} | sed -e " s/\:/\\ \:/g" )
542
551
sed -i -e " s:%WEBLOGIC_IMAGE%:${weblogicImage} :g" ${dcrOutput}
543
552
sed -i -e " s:%ADMIN_PORT%:${adminPort} :g" ${dcrOutput}
544
553
sed -i -e " s:%INITIAL_MANAGED_SERVER_REPLICAS%:${initialManagedServerReplicas} :g" ${dcrOutput}
0 commit comments