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

Support Kafka #80

Merged
merged 6 commits into from
May 17, 2024
Merged

Support Kafka #80

merged 6 commits into from
May 17, 2024

Conversation

clyang82
Copy link
Contributor

Support kafka as a new message broker for maestro.

cmd/maestro/agent/cmd.go Outdated Show resolved Hide resolved
return err
}
cloudEventsSourceOptions = mqtt.NewSourceOptions(mqttOptions, e.Config.MessageBroker.ClientID, e.Config.MessageBroker.SourceID)
} else if e.Config.MessageBroker.MessageBrokerType == work.ConfigTypeKafka {
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of if/else , can this be an injectable implementation of an interface?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @markturansky I added a TODO to create a CloudEventsSourceOptionsBuilder to build the CloudEventsSourceOptions in sdk repo. Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@clyang82 clyang82 force-pushed the kafka branch 2 times, most recently from b79cf19 to 0c87419 Compare May 15, 2024 11:35
clyang82 added 5 commits May 16, 2024 17:30
Signed-off-by: clyang82 <[email protected]>
Signed-off-by: clyang82 <[email protected]>
Signed-off-by: clyang82 <[email protected]>
Signed-off-by: clyang82 <[email protected]>
@clyang82 clyang82 merged commit 8ad292b into openshift-online:main May 17, 2024
5 checks passed
@clyang82 clyang82 deleted the kafka branch May 17, 2024 02:58
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.

4 participants