Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kafka/cluster): fill connectionDetails with bootstrap brokers #1882

Conversation

wotolom
Copy link
Contributor

@wotolom wotolom commented Oct 4, 2023

Description of your changes

use an GetBootstrapBrokers API call (https://docs.aws.amazon.com/cli/latest/reference/kafka/get-bootstrap-brokers.html) to correctly fill in the different endpoints of the AWS MSKafka Cluster into the ConnectionDetails

  • add GetBootstrapBrokers API call in postObserve to insert endpoints into ConnectionDetails
  • correct some wrongly set variable in generateClientAuthentication

Fixes #1711

I have:

  • Read and followed Crossplane's [contribution process].
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

manually

@wotolom wotolom force-pushed the fix-kafka-cluster-connectionsecret-endpoints branch 2 times, most recently from 9635c39 to 79145ba Compare October 4, 2023 14:47
pkg/controller/kafka/cluster/setup.go Outdated Show resolved Hide resolved
Signed-off-by: Charel Baum (external expert on behalf of DB Netz AG) <[email protected]>
@wotolom wotolom force-pushed the fix-kafka-cluster-connectionsecret-endpoints branch from 79145ba to 3dcec62 Compare October 4, 2023 15:03
Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you very much @wotolom!

@MisterMX MisterMX merged commit 00d1294 into crossplane-contrib:master Oct 4, 2023
8 checks passed
@wotolom wotolom deleted the fix-kafka-cluster-connectionsecret-endpoints branch October 4, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSK: write bootstrap connection strings
2 participants