Skip to content

Commit 98c5e98

Browse files
sankarpnrjeberhard
authored andcommitted
[wko-nightly]fix ingress creation
1 parent 832157d commit 98c5e98

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import oracle.weblogic.domain.DomainSpec;
2121
import oracle.weblogic.domain.Model;
2222
import oracle.weblogic.domain.ServerPod;
23+
import oracle.weblogic.kubernetes.actions.impl.TraefikParams;
2324
import oracle.weblogic.kubernetes.actions.impl.primitive.HelmParams;
2425
import oracle.weblogic.kubernetes.annotations.IntegrationTest;
2526
import oracle.weblogic.kubernetes.annotations.Namespaces;
@@ -92,6 +93,7 @@ class ItManagedCoherence {
9293
private static String domainNamespace = null;
9394

9495
private static HelmParams traefikHelmParams = null;
96+
private static TraefikParams traefikParams = null;
9597
private static LoggingFacade logger = null;
9698

9799
/**
@@ -125,7 +127,8 @@ public static void init(@Namespaces(3) List<String> namespaces) {
125127

126128
// install and verify Traefik if not running on OKD
127129
if (!OKD) {
128-
traefikHelmParams = installAndVerifyTraefik(traefikNamespace, 0, 0, "NodePort").getHelmParams();
130+
traefikParams = installAndVerifyTraefik(traefikNamespace, 0, 0, "NodePort");
131+
traefikHelmParams = traefikParams.getHelmParams();
129132
}
130133

131134
// install and verify operator
@@ -175,7 +178,7 @@ void testMultiClusterCoherenceDomain() {
175178
// clusterNameMsPortMap.put(clusterName, managedServerPort);
176179
logger.info("Creating ingress for domain {0} in namespace {1}", domainUid, domainNamespace);
177180
createTraefikIngressForDomainAndVerify(domainUid, domainNamespace, 0, clusterNameMsPortMap, true, null,
178-
traefikHelmParams.getReleaseName());
181+
traefikParams.getIngressClassName());
179182

180183
String clusterHostname = domainUid + "." + domainNamespace + ".cluster-1.test";
181184
// get ingress service Name and Nodeport

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ public static TraefikParams installAndVerifyTraefik(String traefikNamespace,
252252
if (type != null) {
253253
traefikParams.type(type);
254254
}
255+
logger.info("ingressClass name: {0}", traefikParams.getIngressClassName());
255256

256257
// install Traefik
257258
assertThat(installTraefik(traefikParams))

0 commit comments

Comments
 (0)