-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
📖 Raising event doc page created #3450
📖 Raising event doc page created #3450
Conversation
Looks like perfect to merge, But why its failing WDYT? |
``` | ||
|
||
### Allowing usage of EventRecorder on the Controller | ||
To raise an event, you must have access to `record.EventRecorder` in the Controller. Therefore, firstly let's update the controller implementation: |
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.
Nit: space between title and text.
Recorder record.EventRecorder | ||
} | ||
### Passing the EventRecorder to the Controller | ||
Events are published from a Controller using an [EventRecorder]`type CorrelatorOptions struct`, |
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.
Same
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.
Got it.
## How to be able to raise Events? | ||
|
||
Following are the steps with examples to help you raise events in your controller's reconciliations. | ||
Events are published from a Controller using an [EventRecorder]`type CorrelatorOptions struct`, |
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.
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.
Should I add this or any other link
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.
See that it has a few nits.
Since they are not a blocker and you are working on this one for a long period I will
/approved
/lgtm
But if you have a chance please address them in a follow up.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, Sajiyah-Salat The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
sorry for issues I will make changes as soon as possible |
Description: Add the documentation to help out users know how to implement and raise events.
NOTE: we had this document in v1 docs but it is outdated and we are shaping it accordingly.
This is #3375 original pr but during squashing commits I messed up the original file and this is backup.