Skip to content
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

feat: support notifications on rollout events using notifications-engine #1175

Merged
merged 5 commits into from
Jun 18, 2021

Conversation

alexmt
Copy link
Contributor

@alexmt alexmt commented May 14, 2021

Closes #369

Signed-off-by: Alexander Matyushentsev AMatyushentsev@gmail.com

  • Code changes
  • Unit tests
  • Docs

PR adds notifications support to the Rollout. Following changes are implemented:

@codecov
Copy link

codecov bot commented May 18, 2021

Codecov Report

Merging #1175 (2d5949e) into master (002944a) will decrease coverage by 2.56%.
The diff coverage is 84.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1175      +/-   ##
==========================================
- Coverage   83.97%   81.41%   -2.57%     
==========================================
  Files          70      106      +36     
  Lines        6528     9702    +3174     
==========================================
+ Hits         5482     7899    +2417     
- Misses        750     1266     +516     
- Partials      296      537     +241     
Impacted Files Coverage Δ
analysis/sync.go 0.00% <0.00%> (ø)
metricproviders/datadog/datadog.go 80.61% <ø> (ø)
metricproviders/job/job.go 87.50% <ø> (-1.82%) ⬇️
metricproviders/kayenta/kayenta.go 83.96% <ø> (-2.11%) ⬇️
metricproviders/newrelic/newrelic.go 92.00% <ø> (ø)
metricproviders/prometheus/prometheus.go 100.00% <ø> (ø)
metricproviders/wavefront/wavefront.go 95.45% <ø> (+21.54%) ⬆️
metricproviders/webmetric/webmetric.go 65.71% <ø> (+4.01%) ⬆️
pkg/apis/rollouts/validation/validation.go 91.61% <ø> (ø)
.../apis/rollouts/validation/validation_references.go 81.25% <ø> (ø)
... and 120 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2f87a4...2d5949e. Read the comment docs.

@alexmt alexmt force-pushed the 369-notifications-custom-triggers branch 3 times, most recently from 906f787 to 1407491 Compare May 25, 2021 18:56
@alexmt alexmt marked this pull request as ready for review May 25, 2021 19:18
@alexmt alexmt requested a review from jessesuen May 25, 2021 19:25
slack-token: <my-slack-token>
```

Learn more about supported services and configuration settings in services [documentation](../generated/notification-services/overview.md).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link is broken

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

link is referencing file is generated directory. So these files are not committed to git.

@@ -0,0 +1,131 @@
# Notifications
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a note:

!!! important

    Available since v1.1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

has v1.1 been released yet? i see that the release tags only go up to v1.0.2

@jessesuen jessesuen changed the title feat: integrate notifications engine feat: support notifications on rollout events using notifications-engine Jun 17, 2021
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
@alexmt alexmt force-pushed the 369-notifications-custom-triggers branch from fbeaaa5 to 2d5949e Compare June 17, 2021 22:59
@sonarcloud
Copy link

sonarcloud bot commented Jun 17, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
6.2% 6.2% Duplication

@alexmt alexmt merged commit 96ba030 into argoproj:master Jun 18, 2021
@alexmt alexmt deleted the 369-notifications-custom-triggers branch June 18, 2021 00:06
perenesenko pushed a commit to perenesenko/argo-rollouts that referenced this pull request Jun 22, 2021
…ine (argoproj#1175)

feat: support notifications on rollout events using notifications-engine (argoproj#1175)

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Signed-off-by: Andrii Perenesenko <andrii.perenesenko@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add webhooks for rollout failure/success
3 participants