Skip to content

Commit a69f0d6

Browse files
committed
Merge branch 'fix-onlineupdate14120-42' into 'release/4.2'
Correct online update going through upgrade logic by mistake See merge request weblogic-cloud/weblogic-kubernetes-operator!4889
2 parents 3ce011c + b201645 commit a69f0d6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

operator/src/main/resources/scripts/modelInImage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ createWLDomain() {
396396
# create domain again
397397

398398
DISABLE_SM_FOR_12214_NONSM_UPG=0
399-
if [ -f ${PRIMORDIAL_DOMAIN_ZIPPED} ] ; then
399+
if [ -f ${PRIMORDIAL_DOMAIN_ZIPPED} ] && [ -z "${MII_USE_ONLINE_UPDATE}" ] || [ "${MII_USE_ONLINE_UPDATE}" != "true" ] ]; then
400400
checkSecureModeForUpgrade
401401
fi
402402
if [ ${WDT_ARTIFACTS_CHANGED} -ne 0 ] || [ ${jdk_changed} -eq 1 ] \

operator/src/main/resources/scripts/model_wdt_mii_filter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ def upgradeServerIfNeeded(model):
410410
result = fh.read()
411411
fh.close()
412412
found = False
413+
# if secure mode is not enabled in existing domain
413414
if result == 'False':
414415
# check if model has anything set
415416
# if domainInfo already set to secure or in dev mode then do not set it, prod mode will not be secure

0 commit comments

Comments
 (0)