Closed pbochynski closed 3 years ago
The possible solutions:
I vote for option 2
This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. Thank you for your contributions.
Description
Kyma delivers messages internally with CloudEvents specification. The metadata of the event is sent in HTTP request headers. Example:
But in the function different headers are expected and copied to the event object:
Source: https://github.com/kubeless/runtimes/blob/e40586e968c4ecdb636b0da4c173647cfac16c2b/stable/nodejs/kubeless.js#L87-L94
Expected result
Event object in serverless function contains type, version and source of the event.
Actual result
Metadata fields contain undefined values:
Steps to reproduce
Just send the event to the function with single line in the main body:
Workaround
You can access the CloudEvents metadata from incoming request headers: