@@ -454,6 +454,14 @@ function createYamlFiles {
454454 enabledPrefix=" " # uncomment the feature
455455 disabledPrefix=" # " # comment out the feature
456456
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+
457465 # Generate the yaml to create the persistent volume
458466 echo Generating ${domainPVOutput}
459467
@@ -491,6 +499,7 @@ function createYamlFiles {
491499 cp ${createJobInput} ${createJobOutput}
492500 sed -i -e " s:%NAMESPACE%:$namespace :g" ${createJobOutput}
493501 sed -i -e " s:%WEBLOGIC_CREDENTIALS_SECRET_NAME%:${weblogicCredentialsSecretName} :g" ${createJobOutput}
502+ sed -i -e " s:%WEBLOGIC_IMAGE%:${weblogicImage} :g" ${createJobOutput}
494503 sed -i -e " s:%WEBLOGIC_IMAGE_PULL_SECRET_NAME%:${weblogicImagePullSecretName} :g" ${createJobOutput}
495504 sed -i -e " s:%WEBLOGIC_IMAGE_PULL_SECRET_PREFIX%:${weblogicImagePullSecretPrefix} :g" ${createJobOutput}
496505 sed -i -e " s:%DOMAIN_UID%:${domainUID} :g" ${createJobOutput}
@@ -511,6 +520,7 @@ function createYamlFiles {
511520
512521 cp ${deleteJobInput} ${deleteJobOutput}
513522 sed -i -e " s:%NAMESPACE%:$namespace :g" ${deleteJobOutput}
523+ sed -i -e " s:%WEBLOGIC_IMAGE%:${weblogicImage} :g" ${deleteJobOutput}
514524 sed -i -e " s:%WEBLOGIC_CREDENTIALS_SECRET_NAME%:${weblogicCredentialsSecretName} :g" ${deleteJobOutput}
515525 sed -i -e " s:%WEBLOGIC_IMAGE_PULL_SECRET_NAME%:${weblogicImagePullSecretName} :g" ${deleteJobOutput}
516526 sed -i -e " s:%WEBLOGIC_IMAGE_PULL_SECRET_PREFIX%:${weblogicImagePullSecretPrefix} :g" ${deleteJobOutput}
@@ -538,7 +548,6 @@ function createYamlFiles {
538548 sed -i -e " s:%DOMAIN_UID%:${domainUID} :g" ${dcrOutput}
539549 sed -i -e " s:%DOMAIN_NAME%:${domainName} :g" ${dcrOutput}
540550 sed -i -e " s:%ADMIN_SERVER_NAME%:${adminServerName} :g" ${dcrOutput}
541- weblogicImage=$( echo ${weblogicImage} | sed -e " s/\:/\\ \:/g" )
542551 sed -i -e " s:%WEBLOGIC_IMAGE%:${weblogicImage} :g" ${dcrOutput}
543552 sed -i -e " s:%ADMIN_PORT%:${adminPort} :g" ${dcrOutput}
544553 sed -i -e " s:%INITIAL_MANAGED_SERVER_REPLICAS%:${initialManagedServerReplicas} :g" ${dcrOutput}
0 commit comments