Skip to content

Commit 87f3d8c

Browse files
committed
Merge branch '42-mii-upgrade' into 'release/4.2'
Backport (releasse/4.2) removal of internal DNS address See merge request weblogic-cloud/weblogic-kubernetes-operator!4652
2 parents 013cc79 + 6f76e42 commit 87f3d8c

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiDomainUpgradeToSecureMode.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2023, Oracle and/or its affiliates.
1+
// Copyright (c) 2023, 2024, Oracle and/or its affiliates.
22
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
package oracle.weblogic.kubernetes;
@@ -123,7 +123,8 @@ class ItMiiDomainUpgradeToSecureMode {
123123
String clusterIngressHost;
124124
private final String imageTag1411 = "14.1.1.0-11";
125125
private final String imageTag12214 = "12.2.1.4";
126-
private final String image1412 = "wls-docker-dev-local.dockerhub-phx.oci.oraclecorp.com/weblogic:14.1.2.0.0";
126+
private final String imageTag1412 = "14.1.2.0.0-jdk17";
127+
private final String image1412 = BASE_IMAGES_PREFIX + WEBLOGIC_IMAGE_NAME_DEFAULT + ":" + imageTag1412;
127128
private final String sampleAppUri = "/sample-war/index.jsp";
128129
private final String adminAppUri = "/management/tenant-monitoring/servers";
129130
private final String adminAppText = "RUNNING";

integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonTestUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,7 @@ public static String getKindRepoValue(String propertyName) {
20472047

20482048
/**
20492049
* Given a repo and tenancy name, determine the prefix length. For example,
2050-
* phx.ocir.io/foobar/test-images/myimage will treat phx.ocir.io/foobar/ as
2050+
* cloud.io/foobar/test-images/myimage will treat cloud.io/foobar/ as
20512051
* the prefix so the length is 19.
20522052
*
20532053
* @param baseRepo base repo name
@@ -2465,4 +2465,4 @@ public static void createIngressPathRouting(String namespace, String path,
24652465
getLogger().info("ingress {0} was created in namespace {1}", ingressName, namespace);
24662466
}
24672467

2468-
}
2468+
}

integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/IstioUtils.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
import oracle.weblogic.kubernetes.utils.SemanticVersion.Compatibility;
2929

3030
import static oracle.weblogic.kubernetes.TestConstants.ARM;
31+
import static oracle.weblogic.kubernetes.TestConstants.BASE_IMAGES_REPO;
32+
import static oracle.weblogic.kubernetes.TestConstants.BASE_IMAGES_TENANCY;
3133
import static oracle.weblogic.kubernetes.TestConstants.DOMAIN_API_VERSION;
3234
import static oracle.weblogic.kubernetes.TestConstants.FAILURE_RETRY_INTERVAL_SECONDS;
3335
import static oracle.weblogic.kubernetes.TestConstants.FAILURE_RETRY_LIMIT_MINUTES;
@@ -90,10 +92,12 @@ public static void installIstio() {
9092
Paths.get(RESULTS_ROOT, "install-istio.sh");
9193
String installScript = istioInstallPath.toString();
9294

93-
// When install istio in OCNE environment, use phx.ocir.io/devweblogic/istio-release instead of gcr.io/istio-release
95+
// When install istio in OCNE environment,
96+
// use BASE_IMAGES_REPO/devweblogic/istio-release instead of gcr.io/istio-release
9497
if (OCNE) {
98+
String ocneIstioRepo = BASE_IMAGES_REPO + "/" + BASE_IMAGES_TENANCY;
9599
logger.info("replace istio installation hub in File {0}", installScript);
96-
assertDoesNotThrow(() -> replaceStringInFile(installScript, "gcr.io", "phx.ocir.io/devweblogic"),
100+
assertDoesNotThrow(() -> replaceStringInFile(installScript, "gcr.io", ocneIstioRepo),
97101
String.format("Failed to replace string in File %s", installScript));
98102
}
99103
String arch = "linux-amd64";

0 commit comments

Comments
 (0)