mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
If applied, this commit will add an optional canary spec field named summary for notification purposes
Signed-off-by: baldey-nz <baldey@gmail.com>
This commit is contained in:
@@ -175,6 +175,16 @@ func (c *Controller) alert(canary *flaggerv1.Canary, message string, metadata bo
|
||||
|
||||
func alertMetadata(canary *flaggerv1.Canary) []notifier.Field {
|
||||
var fields []notifier.Field
|
||||
|
||||
if canary.Spec.Summary != "" {
|
||||
fields = append(fields,
|
||||
notifier.Field{
|
||||
Name: "Summary",
|
||||
Value: canary.Spec.Summary,
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
fields = append(fields,
|
||||
notifier.Field{
|
||||
Name: "Target",
|
||||
|
||||
Reference in New Issue
Block a user