Comments (9)
It would also be nice to be able to customize the body being sent when using the generic
provider.
I was hoping that using the generic
provider would allow me to send a repository_dispatch
request to a GitHub repository, but it won't work unless I can specify a valid body for the request.
Edit: For GitHub repository_dispatch
, see https://fluxcd.io/flux/components/notification/providers/#github-dispatch
from notification-controller.
I'd very much love being able to template the payload, especially for "generic webhook", because that would open up lots of integrations, e.g. things like sending deployment markers to Honeycomb, setting the currently deployed version in something like Bugsnag, and so on. Having to implement each of those as a custom provider seems (to me at least) to be much more effort than should be necessary. (Also, I'd guess that quite a few of which currently are specialized providers, looking at something like Grafana, for example, could then just as well be "generic webhook" with an appropriate template instead of custom code.)
from notification-controller.
This feels like an essential feature for the notification controller.
To be effective, notifications need to be easy to read and contain just enough information to be informative.
Exactly what that information is will vary in different organisations.
The event
object looks promising. If its intent is something else then maybe its possible to create a new object with a very strict api from the beginning and then adding to it later on?
Github actions solved this nicely with the ${github}
context object I think.
from notification-controller.
UP!
I'm trying customize helmrelease notifcation.
At image Update Automation I want modify template..
imageupdateautomation/flux-system.review
Committed and pushed change 2a70b3c6b39e2214e26ed3f5dae9999f2466526f to main
Images:
XXXXXXXX.com.br/api-arquivo/review:0.4.2-2
I wanted the result to be like this:
helmrelease/api-arquivo.review
Helm upgrade has started
revision
0.3.3
Image
XXXXXXXX.com.br/api-arquivo/review:0.4.2-2
I already tried using summary and eventMetadata:
helmrelease/api-arquivo.review
Helm upgrade succeeded
revision
0.2.8
summary
{{- with index .Event.Metadata "images" -}}
{{- $tag := last (split ":" (index . 0)) -}}
{{- printf "Upgrade %s/%s %s %s." .Values.namespace .Values.nameApp (index .Event.InvolvedObject.Fields "revision") $tag }}
Still without success, does anyone have any idea how to link the image being updated in the helmRelease message? this in a single message?
from notification-controller.
@hkuersten There is a spec.summary
field in the alert resource that you use to add more info to the alert
from notification-controller.
This might work but would mean opening up the go template pandoras box which will be difficult to close if it turns out it does not work. We would need to standardize which variables are exposed, which may lead to feature creep as users ask for more and more features in the templating. Saying that I am more in support of this feature than I am against.
I think implementing this might solve #194.
from notification-controller.
Wanted to throw some support on this. I think since already there is a well defined data object (event
) being templated using format strings, this would be easy to implement a basic POC.
What I'd suggest is that the first implementation of this exposes this object for templating support.
from notification-controller.
Glad to see others are in favor of this.
How bad is this go template pandora's box?
from notification-controller.
I, too, would love to have a little bit more flexibility in constructing the message sent to Slack: we use the same channel for all notifications from our various environments (dev, QA, Staging and Prod) and if the message is always
kustomization/some-app.flux-system
Deployment/some-app/some-app-deployment configured
revision
master/abc12345def678
Would it be possible to add at least some info on the cluster, from which the event was emitted?
from notification-controller.
Related Issues (20)
- feat: workflow_dispatch approach for GitLab HOT 3
- Invalid address error in googlepubsub-provider HOT 7
- Receiver match on labels HOT 2
- The Provider API docs uses deprecated API versions
- Panic while using bitbucketserver provider for git commit status HOT 3
- Grafana annotation for Kustomization does not show revision hash HOT 3
- Telegram notification sometimes don't work
- Alert: "error":"postMessage failed: failed to execute request: context deadline exceeded" HOT 1
- Bitbucket Server Provider does not support custom SSH port or HTTP context path HOT 4
- Add alternative key name for the commit status secret HOT 1
- notification controller does not strip new line and the end of URL
- [RFC-0006] Implement CDEvents Receiver type HOT 1
- Allow 'all namespaces' in eventSources HOT 1
- Pod support for alerts HOT 1
- Alerts sent to Alertmanager contain timestamps as labels, preventing alert grouping HOT 2
- Add support for custom headers with Grafana provider HOT 1
- Unable to receive webhook alerts HOT 6
- Metrics has a potential cardinality issue HOT 3
- Mattemost posts API reference isn't available to use.
- Slack/Teams/PagerDuty messages not working HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notification-controller.