-
Notifications
You must be signed in to change notification settings - Fork 137
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
Implementation for event driven tink #301
Conversation
d8a26b2
to
3580dc4
Compare
Codecov Report
@@ Coverage Diff @@
## master #301 +/- ##
==========================================
+ Coverage 26.09% 28.73% +2.64%
==========================================
Files 14 19 +5
Lines 1280 1385 +105
==========================================
+ Hits 334 398 +64
- Misses 921 960 +39
- Partials 25 27 +2
Continue to review full report at Codecov.
|
67b9cbc
to
4782daf
Compare
be4a874
to
57cdc4e
Compare
57cdc4e
to
08b5a24
Compare
6ec4f5c
to
7e3bd2e
Compare
ebf0993
to
94c0177
Compare
According to the demo @gauravgahlot gave today here some feedback. I think we should not use an integer for event types and resource_type we should use strings. They are way more readable as constant and it won't require to actually have a catalog of them. A few bytes to store but who cares. If we start supporting custom events and types it will be impossible to keep a centralized index. We have to figure out how to effectively deserialize The CLI I think should reflect that filters we will have to implement something like Other than that, great start! |
6d4ceaf
to
1b00099
Compare
a637b63
to
b42b2c7
Compare
@splaspood fyi |
deploy/db/tinkerbell-init.sql
Outdated
|
||
CREATE TRIGGER hardware_trigger | ||
AFTER INSERT OR UPDATE ON hardware | ||
FOR EACH ROW EXECUTE PROCEDURE hardware_event(); |
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.
we should also ensure the old entries are trimmed away right?
9d4faa2
to
cf5fc78
Compare
a0d634b
to
a87aa36
Compare
Updated branch with a rebase, no changes. |
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
a87aa36
to
14badba
Compare
Description
This PR provides the implementation for event-driven Tinkerbell base model proposed here.
Note
We would like to keep
Watch
as the function used to stream events for the new event-driven tink. Therefore, the existinghardware.Watch
has been renamed tohardware.DeprecatedWatch
.This will also require some changes in Hegel, so that it can use the
hardware.DeprecatedWatch
.Why is this needed
Fixes: #294
How Has This Been Tested?
Unit tests and manual testing.
How are existing users impacted? What migration steps/scripts do we need?
This contains a bc-break. Watch has been renamed to DeprecatedWatch, clients will need to be regenerated and upgraded.
Checklist:
I have:
Known issues in progress (fixed)
tink hardware watch <id>
fails to correctly print the hardware data for new events