Skip to content

Commit 208afcd

Browse files
committed
2 parents af81fbc + 050745f commit 208afcd

File tree

6 files changed

+13
-31
lines changed

6 files changed

+13
-31
lines changed

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@
114114

115115
<dependencyManagement>
116116
<dependencies>
117+
<dependency>
118+
<groupId>org.springframework</groupId>
119+
<artifactId>spring-framework-bom</artifactId>
120+
<version>6.2.4-SNAPSHOT</version>
121+
<type>pom</type>
122+
<scope>import</scope>
123+
</dependency>
117124

118125
<dependency>
119126
<groupId>org.springframework.cloud</groupId>

spring-cloud-kubernetes-test-support/src/main/java/org/springframework/cloud/kubernetes/integration/tests/commons/Images.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public final class Images {
4646

4747
private static final String ISTIO_PILOT_TAR = ISTIO_PILOT.replace('/', '-') + ":" + istioVersion();
4848

49-
private static final String KAFKA = "confluentinc/cp-kafka";
49+
private static final String KAFKA = "confluentinc/confluent-local";
5050

5151
private static final String KAFKA_TAR = KAFKA.replace('/', '-') + kafkaVersion();
5252

spring-cloud-kubernetes-test-support/src/main/java/org/springframework/cloud/kubernetes/integration/tests/commons/native_client/Util.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,11 @@ public void kafka(String namespace, Phase phase) {
267267
deployment.getSpec().getTemplate().getSpec().getContainers().get(0).setImage(imageWithVersion);
268268

269269
V1Service service = (V1Service) yaml("kafka/kafka-service.yaml");
270-
V1ConfigMap configMap = (V1ConfigMap) yaml("kafka/kafka-configmap-startup-script.yaml");
271270

272271
if (phase.equals(Phase.CREATE)) {
273-
createAndWait(namespace, configMap, null);
274272
createAndWait(namespace, "kafka", deployment, service, null, false);
275273
}
276274
else if (phase.equals(Phase.DELETE)) {
277-
deleteAndWait(namespace, configMap, null);
278275
deleteAndWait(namespace, deployment, service, null);
279276
}
280277
}

spring-cloud-kubernetes-test-support/src/main/resources/current-images.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ busybox:1.36.1
22
istio/istioctl:1.21.6
33
istio/proxyv2:1.21.6
44
istio/pilot:1.21.6
5-
confluentinc/cp-kafka:7.2.1
5+
confluentinc/confluent-local:7.9.0
66
rabbitmq:3-management
77
wiremock/wiremock:3.4.2

spring-cloud-kubernetes-test-support/src/main/resources/kafka/kafka-configmap-startup-script.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

spring-cloud-kubernetes-test-support/src/main/resources/kafka/kafka-deployment.yaml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,16 @@ spec:
2121
# and this will cause this problem: https://github.com/confluentinc/cp-docker-images/blob/master/debian/kafka/include/etc/confluent/docker/configure#L58-L62
2222
# Another solution is to rename the service.
2323
enableServiceLinks: false
24-
volumes:
25-
- name: kafka-start-config-script
26-
configMap:
27-
name: kafka-start-config-script
28-
defaultMode: 0755
2924
containers:
30-
- name: kafka-start-config-script
31-
volumeMounts:
32-
- name: kafka-start-config-script
33-
mountPath: /tmp
34-
command:
35-
- /tmp/kafka_start.sh
36-
image: confluentinc/cp-kafka
25+
- name: kafka-broker
26+
image: confluentinc/confluent-local
3727
ports:
3828
- containerPort: 9092
3929
env:
4030
- name: KAFKA_BROKER_ID
4131
value: "1"
32+
- name: KAFKA_NODE_ID
33+
value: "1"
4234
- name: KAFKA_LISTENER_SECURITY_PROTOCOL_MAP
4335
value: "CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT"
4436
- name: KAFKA_ADVERTISED_LISTENERS
@@ -47,8 +39,6 @@ spec:
4739
value: "1"
4840
- name: KAFKA_PROCESS_ROLES
4941
value: "broker,controller"
50-
- name: KAFKA_NODE_ID
51-
value: "1"
5242
- name: KAFKA_LISTENERS
5343
value: "PLAINTEXT://:9092,CONTROLLER://:9093"
5444
- name: KAFKA_INTER_BROKER_LISTENER_NAME

0 commit comments

Comments
 (0)