-
Notifications
You must be signed in to change notification settings - Fork 135
feat(events): add events extension #3045
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
28ab11e
to
bc805f9
Compare
@phoban01 nice work! thanks for starting this PR. |
@@ -954,7 +954,7 @@ func TestCookiestoreCleanup(t *testing.T) { | |||
err = os.Chtimes(sessionPath, changeTime, changeTime) | |||
So(err, ShouldBeNil) | |||
|
|||
imgStore := local.NewImageStore(rootDir, false, false, log, metrics, nil, nil, nil) | |||
imgStore := local.NewImageStore(rootDir, false, false, log, metrics, nil, nil, nil, nil) |
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 really need to shorten the args list into a struct we can pass around. Not related to your PR thouugh.
Updated with HTTP and NATs event sinks. Also generalized the sink config. |
6027785
to
ba31ccf
Compare
Anything I can do to help bump this along? cc: @rchincha |
There are CI failures that will need fixing. |
fadab3f
to
6a42932
Compare
Let's also add an end-to-end validation with a mock or real CloudEvents server/broker. Easiest to pick something you can package as a container image. You are making an investment with this PR, let's also protect it going forward. |
Yeah, agree; I've been thinking a bit about this. My current dev machine is macos/arm... which is not really compatible with the current Makefile as most tools are targeting amd arch. I can update the Makefile to address these issues, @rchincha you happy for that to be part of this PR or shall I break it out? |
6a42932
to
a7632fe
Compare
Either way is fine. First the CI failures need addressing. Let us know if need help with that. Note that data race detection is enabled for our tests. |
1ea5194
to
2b3564b
Compare
ccc5e45
to
8c0d3f1
Compare
Added blackbox tests for events service covering nats and http. |
c8c5a68
to
cc5148a
Compare
Apologies @andaaron; your review got dismissed because of a DCO issue. |
I believe this PR is very close to merging. |
Also, go.mod needs bumping ... |
@phoban01 not sure if you are able to look at coverage profile. If you are, do also look at bumping coverage up. |
Signed-off-by: Asgeir Nilsen <[email protected]> Signed-off-by: Piaras Hoban <[email protected]>
Co-authored-by: Andrei Aaron <[email protected]> Signed-off-by: Piaras Hoban <[email protected]>
Signed-off-by: Piaras Hoban <[email protected]>
Signed-off-by: Piaras Hoban <[email protected]>
30b182a
to
524280b
Compare
I am; spent some time on it earlier this week. Will invest more as time allows. |
Fix in 524280b |
Signed-off-by: Piaras Hoban <[email protected]>
9b640c3
to
f5ffb76
Compare
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.
lgtm
@phoban01 @asgeirn Pls do consider joining #zot on Slack |
https://github.com/project-zot/zot/releases/tag/v2.1.3-rc6 |
@rchincha just an FYI. I noticed this introduces a new dependency on helm. The helm project is working on v4 and one of the dependency changes in v4 is oras v2. You might want to give some thought to upgrading oras at some point. |
What type of PR is this?
feature
Which issue does this PR fix:
#2992
What does this PR do / Why do we need it:
This PR introduces a new extension:
events
that enables publishing events in the CloudEvent schema.The following event types are implemented:
Two event sinks are implemented as part of this change:
Testing done on this change:
Unit tests added for http and nats event sinks. I have also tested things locally.
Automation added to e2e:
Will this break upgrades or downgrades?
No
Does this PR introduce any user-facing change?:
Yes it introduces a new configuration stanza for events.
The following shows how the extension may be configured:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.