-
Notifications
You must be signed in to change notification settings - Fork 737
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
Add cluster name to flagger cmd args for altering #1041
Add cluster name to flagger cmd args for altering #1041
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the cluster field and leave only summary. In a distant feature, Flagger will be integrated with Flux notification-controller and the Alert CRD from Flux contains only Summary.
Codecov Report
@@ Coverage Diff @@
## main #1041 +/- ##
==========================================
+ Coverage 56.88% 57.17% +0.28%
==========================================
Files 76 76
Lines 6093 6169 +76
==========================================
+ Hits 3466 3527 +61
- Misses 2102 2111 +9
- Partials 525 531 +6
Continue to review full report at Codecov.
|
…summary for notification purposes Signed-off-by: baldey-nz <baldey@gmail.com>
7189eb5
to
c638edd
Compare
Cluster field removed as requested. @stefanprodan any chance of taking another look at this one? |
@stefanprodan Should we maybe place the summary field in the CanaryAlert struct( flagger/pkg/apis/flagger/v1beta1/canary.go Line 297 in 30ab182
|
Hi @stefanprodan - any chance you could let us know what the preferred option is here please? we are really keen to start using flagger in production but this is currently blocking us. thanks! |
@Nerja good point, adding it to Canary means we'll break the API once we switch over to Flux notification-controller. @baldey-nz to unblock this, I'm for adding a |
@stefanprodan like this? |
Signed-off-by: baldey-nz <baldey@gmail.com>
707e7ba
to
8c881ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @baldey-nz
Signed-off-by: baldey-nz baldey@gmail.com
As per issue feature request #926, the notifications to slack for flagger are great but if we have multiple clusters running flagger and all are sending notifications to the same channel then its hard to determine which cluster the canary is happening in from the notification msgs.
This change adds an optional summary field (Spec.Summary)
If this fields isnt set then nothing changes in the notifications.
If summary is set then a new summary field is created e.g:
my-app.my-namespace
New Deployment detected, initialization completed.
Summary
Sandbox env
Target
Deployment/my-app.my-namespace
.......