Skip to content

Commit c19291f

Browse files
committed
Fix hostname for internal
1 parent 86bf343 commit c19291f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/k8sutil/status.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,10 @@ func CreateInternalListenerStatuses(kafkaCluster *v1beta1.KafkaCluster, external
324324
// add addresses per broker
325325
for _, broker := range kafkaCluster.Spec.Brokers {
326326
var address = ""
327-
328327
if iListener.ExternalListenerForHostname != "" && iListener.InternalStartingPort > 0 {
329328
if eListenerStatus, ok := externalListenerStatus[iListener.ExternalListenerForHostname]; ok {
330-
hostname := getHostnameForBrokerId(eListenerStatus, broker.Id)
331-
address = fmt.Sprintf("%s://%s:%d",
332-
strings.ToUpper(iListener.Name), hostname, iListener.InternalStartingPort+broker.Id)
329+
address = fmt.Sprintf("%s:%d", getHostnameForBrokerId(eListenerStatus, broker.Id),
330+
iListener.InternalStartingPort+broker.Id)
333331
}
334332
}
335333

0 commit comments

Comments
 (0)