Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
hvan committed Feb 6, 2025
1 parent 400f6ae commit 00322db
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions pkg/resources/kafka/configmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1056,12 +1056,6 @@ process.roles=broker,controller
{
MountPath: "/test-kafka-logs",
},
{
MountPath: "/test-kafka-logs-50",
},
{
MountPath: "/test-kafka-logs-100",
},
},
},
ReadOnlyConfig: "migration.broker.controllerQuorumConfigEnabled=true\nmigration.broker.kRaftMode=false",
Expand All @@ -1074,12 +1068,6 @@ process.roles=broker,controller
{
MountPath: "/test-kafka-logs",
},
{
MountPath: "/test-kafka-logs-50",
},
{
MountPath: "/test-kafka-logs-100",
},
},
},
ReadOnlyConfig: "migration.broker.controllerQuorumConfigEnabled=false\nmigration.broker.kRaftMode=true",
Expand Down Expand Up @@ -1121,11 +1109,11 @@ process.roles=broker,controller
},
{
Name: "broker-200",
Address: "kafka-100.kafka.svc.cluster.local:9092",
Address: "kafka-200.kafka.svc.cluster.local:9092",
},
{
Name: "broker-300",
Address: "kafka-100.kafka.svc.cluster.local:9092",
Address: "kafka-300.kafka.svc.cluster.local:9092",
},
},
},
Expand All @@ -1144,12 +1132,12 @@ process.roles=broker,controller
Address: "kafka-100.kafka.svc.cluster.local:9093",
},
{
Name: "broker-100",
Address: "kafka-100.kafka.svc.cluster.local:9093",
Name: "broker-200",
Address: "kafka-200.kafka.svc.cluster.local:9093",
},
{
Name: "broker-100",
Address: "kafka-100.kafka.svc.cluster.local:9093",
Name: "broker-300",
Address: "kafka-300.kafka.svc.cluster.local:9093",
},
},
},
Expand Down Expand Up @@ -1192,6 +1180,9 @@ metric.reporters=com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlM
`,
`advertised.listeners=INTERNAL://kafka-200.kafka.svc.cluster.local:9092
broker.id=200
control.plane.listener.name=CONTROLLER
controller.listener.names=CONTROLLER
[email protected]:9093,[email protected]:9093
cruise.control.metrics.reporter.bootstrap.servers=kafka-all-broker.kafka.svc.cluster.local:9092
cruise.control.metrics.reporter.kubernetes.mode=true
inter.broker.listener.name=INTERNAL
Expand All @@ -1201,8 +1192,6 @@ log.dirs=/test-kafka-logs/kafka
metric.reporters=com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter
`,
`advertised.listeners=INTERNAL://kafka-300.kafka.svc.cluster.local:9092
controller.listener.names=CONTROLLER
[email protected]:9093,[email protected]:9093
cruise.control.metrics.reporter.bootstrap.servers=kafka-all-broker.kafka.svc.cluster.local:9092
cruise.control.metrics.reporter.kubernetes.mode=true
inter.broker.listener.name=INTERNAL
Expand Down

0 comments on commit 00322db

Please sign in to comment.