Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ func ConnectToCluster(connection pkgConnection.Connection,
return
}

if kafkaInstance.BootstrapServerHost == nil || *kafkaInstance.BootstrapServerHost == "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if kafkaInstance.BootstrapServerHost == nil || *kafkaInstance.BootstrapServerHost == "" {
if kafkaInstance.getBootstrapServerHost() == "" {

fmt.Fprintf(os.Stderr, "Kafka instance is missing required BootstrapServerHost variable")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be using the logger

return
}

fmt.Fprintf(os.Stderr, statusMsg, color.HiGreenString(*kafkaInstance.Name), color.HiGreenString(currentNamespace), color.HiGreenString(secretName))
if shouldContinue := utils.ShowQuestion("Do you want to continue?"); shouldContinue == false {
return
Expand Down