-
Notifications
You must be signed in to change notification settings - Fork 168
Add events framework for OpenFunction #83
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
Conversation
This is a fantastic PR! @tpiperatgod |
I have modified the reconcile logic of EventSource and Trigger: EventSource
Controller flow:
Trigger
Controller flow:
|
Signed-off-by: laminar <fangtian@kubesphere.io>
New updates:
|
Added |
@tpiperatgod I think we can remove sourceKind like this, user needn't add |
Agree |
It (after changes) will trigger reconcile of |
Signed-off-by: laminar <fangtian@kubesphere.io>
|
What this PR do
In the proposal Add event framework we discuss the feasibility and implementation of the OpenFunction event framework. And in this PR, I have completed the basic functionality of the above event framework.
The specific changes are as follows:
Added three basic CRDs:
According to the design in the proposal, I added
EventSource
,EventBus
andTrigger
CRDs. Here are some examples:EventSource
EventBus
Trigger
Added three corresponding controllers:
spec.eventBusNames
(Used to connect event sources to event bus)SourceEnvConfig
SourceEnvConfig
)TriggerEnvConfig
TriggerEnvConfig
)What can it currently do
TODO:
Improve the state management mechanism of EventSource and Trigger
Judgment logic for events in Trigger
Abstraction of the specification of the dapr component in CRD
Using OpenFunction Serving to drive the workloads of EventSource and Trigger
Add more kinds of event sources, event buses and triggers
Add samples && concept docs
Signed-off-by: laminar fangtian@kubesphere.io