-
Notifications
You must be signed in to change notification settings - Fork 27
Add first-class Kafka trigger and output binding support with Schema Registry URL #403
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
base: v4.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,8 @@ import { | |
| GenericTriggerOptions, | ||
| HttpTrigger, | ||
| HttpTriggerOptions, | ||
| KafkaTrigger, | ||
| KafkaTriggerOptions, | ||
| McpToolTrigger, | ||
| McpToolTriggerOptions, | ||
| MySqlTrigger, | ||
|
|
@@ -129,6 +131,13 @@ export function webPubSub(options: WebPubSubTriggerOptions): WebPubSubTrigger { | |
| }); | ||
| } | ||
|
|
||
| export function kafka(options: KafkaTriggerOptions): KafkaTrigger { | ||
| return addTriggerBindingName({ | ||
| ...options, | ||
| type: 'kafkaTrigger', | ||
| }); | ||
| } | ||
|
Comment on lines
+134
to
+139
|
||
|
|
||
| /** | ||
| * Creates an MCP Tool trigger configuration. | ||
| * This function is used to define an MCP Tool trigger for an Azure Function. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add unit coverage for the new
output.kafka(...)helper to validate the generated output binding metadata (e.g.,type: 'kafka', direction'out', and deterministic auto-generated binding name). This behavior is covered for other outputs intest/converters/toCoreFunctionMetadata.test.ts, but Kafka output isn’t included.