Skip to content
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

Harbor and CDEvents #225

Open
afrittoli opened this issue Jun 2, 2023 · 5 comments
Open

Harbor and CDEvents #225

afrittoli opened this issue Jun 2, 2023 · 5 comments

Comments

@afrittoli
Copy link

Harbor recently introduced support for CloudEvents (kudos!), which makes it possible for consumers to watch those events, react to them and/or store them for records.

The CDEvents project, incubated at the CD Foundation, aims to standardise the content of events in the continuous delivery space, thus introducing interoperability across different tools.

CDEvents is being implemented by a number of tools like Jenkins, Spinnaker, Tekton, Testkube, Argo, and more.

One interesting feature of Argo CD is its ability to react to a new tag being published for an artifact, and automatically trigger a new deployment as well as a new PR to keep the git repo up to date as well. Argo CD today has to rely on polling only - a standard event sent by a registry on PUSH would allow Argo CD to react instantaneously.

Having all tools generating CDEvents allows organisations to collect all those events, and use them to build audit trails, and visualisations and trigger the next step in event-driven workflows.

image

I would like to author, with some help from the Harbor community, a proposal to integrate CDEvents in Harbor.
I started a draft proposal in an hackmd document, feedback and input are welcome. Once the draft proposal looks ok, I can submit a PR - but please let me know if I should follow I different workflow.

@OrlinVasilev
Copy link
Member

@afrittoli how is it going with this are we close to closing and implementing it?

@afrittoli
Copy link
Author

Proposal PR #229

@afrittoli
Copy link
Author

@chlins and @wy65701436

@afrittoli how is it going with this are we close to closing and implementing it?

@OrlinVasilev I posted a proposed way forward in #229 (comment) but got no reply. Do you have a suggestion on a possible way forward? Would it help to bring the discussion to the working group meeting?

@Vad1mo
Copy link
Member

Vad1mo commented Oct 3, 2024

CDEvents now has support for some artifacts evnts

https://github.com/cdevents/spec/blob/v0.4.1/continuous-integration.md

@afrittoli
Copy link
Author

@Vad1mo Thank you! In the latest release we added more artifact events indeed, as well as support for custom events, meaning that we would be able to send events that are not in the CDEvents spec as Harbor custom CDEvents, using the dev.cdeventsx dedicated for that.

If the Harbor community is interested, I'd be happy to resurrect my POC and make a full PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants