Skip to content

Commit b3e2799

Browse files
authored
Merge branch 'main' into fixCertManager
2 parents c890050 + 802edaa commit b3e2799

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

kroxylicious-kubernetes-api/src/main/resources/META-INF/fabric8/kafkaproxyingresses.kroxylicious.io-v1.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ spec:
6868
clusterIP:
6969
type: object
7070
description: |-
71-
clusterIP specifies that this ingress is for access within the same Kubernetes cluster using
71+
specifies that this ingress is for access within the same Kubernetes cluster using
7272
ClusterIP Kubernetes Services.
7373
required: [ "protocol" ]
7474
properties:
@@ -79,8 +79,8 @@ spec:
7979
loadBalancer:
8080
type: object
8181
description: |-
82-
clusterIP specifies that this ingress is for access within the same Kubernetes cluster using
83-
ClusterIP Kubernetes Services.
82+
specifies that this ingress is for access from outside the Kubernetes cluster
83+
via a LoadBalancer Kubernetes Services.
8484
required: [ "bootstrapAddress", "advertisedBrokerAddressPattern"]
8585
x-kubernetes-validations:
8686
- rule: "self.advertisedBrokerAddressPattern.contains('$(nodeId)')"

kroxylicious-systemtests/src/main/java/io/kroxylicious/systemtests/Constants.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ private Constants() {
2929
public static final String KROXYLICIOUS_TLS_CA_NAME = "ca.pem";
3030
public static final String KROXYLICIOUS_OPERATOR_SUBSCRIPTION_NAME = Environment.KROXYLICIOUS_OLM_DEPLOYMENT_NAME + "-v" + Environment.KROXYLICIOUS_OPERATOR_VERSION
3131
+ "-sub";
32-
public static final String KROXYLICIOUS_OPERATOR_OLM_LABEL = Environment.KROXYLICIOUS_OLM_DEPLOYMENT_NAME + "-operator-v" + Environment.KROXYLICIOUS_OPERATOR_VERSION;
3332

3433
/**
3534
* Strimzi cluster operator deployment name

kroxylicious-systemtests/src/main/java/io/kroxylicious/systemtests/resources/operator/KroxyliciousOperatorOlmBundleInstaller.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636

3737
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
3838

39+
import static io.kroxylicious.systemtests.k8s.KubeClusterResource.kubeClient;
40+
3941
/**
4042
* KroxyliciousOperatorOlmBundleInstaller encapsulates the whole OLM installation process of Kroxylicious Operator. Based on the @code{Environment}
4143
* values, this class installs Kroxylicious Operator using bundle olm.
@@ -167,8 +169,10 @@ private CompletableFuture<Void> install(String operatorName, String operatorName
167169
@SuppressFBWarnings("REC_CATCH_EXCEPTION")
168170
private boolean isOperatorReady(String ns) {
169171
try {
172+
String label = kubeClient().listPodsByPrefixInName(ns, Environment.KROXYLICIOUS_OLM_DEPLOYMENT_NAME).get(0).getMetadata()
173+
.getLabels().get("app.kubernetes.io/instance");
170174
PodUtils.waitForPodsReadyWithRestart(ns, new LabelSelectorBuilder()
171-
.withMatchLabels(Map.of("app.kubernetes.io/instance", Constants.KROXYLICIOUS_OPERATOR_OLM_LABEL)).build(),
175+
.withMatchLabels(Map.of("app.kubernetes.io/instance", label)).build(),
172176
1, true);
173177
LOGGER.info("Kroxylicious operator in namespace {} is ready", ns);
174178
return true;

0 commit comments

Comments
 (0)