@@ -586,24 +586,21 @@ function createYamlFiles {
586586
587587 echo Generating ${apacheOutput}
588588
589- # This part needs to be done before substitution of %DOMAIN_UID%, %ADMIN_SERVER_NAME% and %ADMIN_PORT%
590589 if [ " ${loadBalancerExposeAdminPort} " = " true" ]; then
591- sed -i -e " s|# - name: WEBLOGIC_HOST| - name: WEBLOGIC_HOST|g" ${apacheOutput}
592- sed -i -e " s|# value: '%DOMAIN_UID%-%ADMIN_SERVER_NAME%'| value: '%DOMAIN_UID%-%ADMIN_SERVER_NAME%'|g" ${apacheOutput}
593- sed -i -e " s|# - name: WEBLOGIC_PORT| - name: WEBLOGIC_PORT|g" ${apacheOutput}
594- sed -i -e " s|# value: '%ADMIN_PORT%'| value: '%ADMIN_PORT%'|g" ${apacheOutput}
590+ enableLoadBalancerExposeAdminPortPrefix=" ${enabledPrefix} "
591+ else
592+ enableLoadBalancerExposeAdminPortPrefix=" ${disabledPrefix} "
595593 fi
596594
597595 if [ ! -z " ${loadBalancerVolumePath} " ]; then
596+ enableLoadBalancerVolumePathPrefix=" ${enabledPrefix} "
598597 sed -i -e " s:%LOAD_BALANCER_VOLUME_PATH%:${loadBalancerVolumePath} :g" ${apacheOutput}
599- sed -i -e " s:# volumes:volumes:g" ${apacheOutput}
600- sed -i -e " s|# - name: %DOMAIN_UID%-apache-webtier|- name: %DOMAIN_UID%-apache-webtier|g" ${apacheOutput}
601- sed -i -e " s:# hostPath: hostPath:g" ${apacheOutput}
602- sed -i -e " s:# path: path:g" ${apacheOutput}
603- sed -i -e " s:# volumeMounts:volumeMounts:g" ${apacheOutput}
604- sed -i -e " s:# mountPath: mountPath:g" ${apacheOutput}
598+ else
599+ enableLoadBalancerVolumePathPrefix=" ${disabledPrefix} "
605600 fi
606601
602+ sed -i -e " s:%ENABLE_LOAD_BALANCER_EXPOSE_ADMIN_PORT%:${enableLoadBalancerExposeAdminPortPrefix} :g" ${apacheOutput}
603+ sed -i -e " s:%ENABLE_LOAD_BALANCER_VOLUME_PATH%:${enableLoadBalancerVolumePathPrefix} :g" ${apacheOutput}
607604 sed -i -e " s:%NAMESPACE%:$namespace :g" ${apacheOutput}
608605 sed -i -e " s:%DOMAIN_UID%:${domainUID} :g" ${apacheOutput}
609606 sed -i -e " s:%DOMAIN_NAME%:${domainName} :g" ${apacheOutput}
0 commit comments