brigadecore / brigade-cloudevents-gateway Goto Github PK
View Code? Open in Web Editor NEWA Brigade 2 compatible gateway for CloudEvents 1.0
License: Apache License 2.0
A Brigade 2 compatible gateway for CloudEvents 1.0
License: Apache License 2.0
This repo requires the same change.
The user-agent header is not currently set when validating the event source (
). It would be kind to provide some indication of the client when addressing the event source.brigadecore/brigade#1961 allows the values of event qualifiers and labels to be longer than before.
This seems fairly critical to the success of this particular gateway because CloudEvent source are likely to be fairly long strings and this information gets poked into a qualifier. (For reference, I've seen sources 160+ characters long coming from Azure Event Grid.)
In light of this, the docs for this gateway should probably recommend v2.6.0+ (unreleased as of this writing) as the minimum Brigade version.
This allows us to implement #49 as a separate job without rebuilding the image.
It also sets us up to eventually add e2e or integration tests without rebuilding the image.
This component is getting closer to a GA state and needs the same kind of docs makeover that has been done for a few of the other gateways.
The goal is to shorten the README and give it a clear focus on usage by an end user and move the installation instructions, which are operator-focused, and comparatively uninteresting, to their own page.
cc @czunker
... instead of just what's in the data
field.
Example CloudEvent that came from from Azure Container Registry via Azure Event Grid:
{
"id": "78e0a086-b9c2-49aa-be49-00d0abf2f866",
"source": "/subscriptions/9491dcfe-4a3c-4806-a1c9-61dde2354d03/resourceGroups/brigade/providers/Microsoft.ContainerRegistry/registries/unstablebrigade",
"specversion": "1.0",
"type": "Microsoft.ContainerRegistry.ImagePushed",
"subject": "brigade2-git-initializer:edge",
"time": "2022-05-20T19:12:56.7210091Z",
"data": {
"id": "78e0a086-b9c2-49aa-be49-00d0abf2f866",
"timestamp": "2022-05-20T19:12:56.5970848Z",
"action": "push",
"location": "eastus",
"target": {
"mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
"size": 743,
"digest": "sha256:1c016eea8d789c445736314480d0f9f46ec2820c5dcb51308b2d226985eef4ce",
"length": 743,
"repository": "brigade2-git-initializer",
"tag": "edge"
},
"request": {
"id": "bf4003e0-030b-4b15-8930-69f7975b8e2b",
"host": "unstablebrigade.azurecr.io",
"method": "PUT",
"useragent": "buildkit/v0.10"
}
}
}
I feel like there's a strong possibility that an end user of Brigade would want to access fields that aren't subordinate to data
in their scripts.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.