Notify new deployed versions #3978
Replies: 3 comments 5 replies
-
You can use your Kustomization as an event source. |
Beta Was this translation helpful? Give feedback.
-
@fabidick22 May I know if you found a solution to get notification when new release deployed? |
Beta Was this translation helpful? Give feedback.
-
The Flux Alert object supports custom metadata which is added to the alert message, so you can use the image automation marker and update the image tag like so: apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Alert
metadata:
name: apps
spec:
eventSources:
- kind: Kustomization
name: apps
eventMetadata:
app1: image # {"$imagepolicy": "flux-system:app1"} When image automation updates the app image in the Deployment it will also update the Alert metadata. When the Alert will trigger for the Flux Kustomization rolling over the new app version, the notification will contain the latest image used. |
Beta Was this translation helpful? Give feedback.
-
Hi team, I wonder if there is a possibility to notify only when a new version of a registry image is released. I'm using the Notification Controller to create an alert for certain events, but I can't find documentation to create an alert when a rollout event changes the version of the image I use in my deployment.
Case of use:
The
Deployment
image is updated to versionv1.2.3
with theImageUpdateAutomation
resource and flux does its magic of reconciling the changes, at this point we would like to be able to notify the dev team that versionv1.2.3
was successfully released or not.I understand that the Notification Controller can capture different types of events, but it cannot be filtered on this event because it is very generic, it can capture different types of changes on the
Deployment
resource.So I would like to know some other event that I can capture or a workaround it to implement to be able to notify new deployed versions.
Beta Was this translation helpful? Give feedback.
All reactions