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

Add external checks to canary analysis #18

Merged
merged 14 commits into from
Jan 4, 2019
Merged

Add external checks to canary analysis #18

merged 14 commits into from
Jan 4, 2019

Conversation

stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Dec 26, 2018

This PR adds webhook capabilities to the canary validation process. The canary analysis can be extend with integration tests, load tests or any kind of custom validation logic.

Fix #17

- add required fields for deployment and hpa targets
- make service port mandatory
- add webhooks validation
- do a HTTP POST for each webhook registered in the canary analysis
- increment the failed checks counter if a webhook returns a non-2xx status code and log the error and the response body if exists
@codecov-io
Copy link

codecov-io commented Dec 26, 2018

Codecov Report

Merging #18 into master will increase coverage by 6.7%.
The diff coverage is 54.54%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #18     +/-   ##
=========================================
+ Coverage   44.24%   50.95%   +6.7%     
=========================================
  Files           6        7      +1     
  Lines         904      942     +38     
=========================================
+ Hits          400      480     +80     
+ Misses        449      381     -68     
- Partials       55       81     +26
Impacted Files Coverage Δ
pkg/controller/recorder.go 85.71% <ø> (ø) ⬆️
pkg/controller/router.go 85.78% <ø> (ø) ⬆️
pkg/controller/controller.go 6.96% <ø> (ø) ⬆️
pkg/controller/deployer.go 58.09% <100%> (ø) ⬆️
pkg/controller/scheduler.go 25.58% <11.11%> (-0.93%) ⬇️
pkg/controller/webhook.go 62.5% <62.5%> (ø)
pkg/controller/observer.go 60% <0%> (+60%) ⬆️

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 9753820...13fffe1. Read the comment docs.

@stefanprodan stefanprodan merged commit 2a9641f into master Jan 4, 2019
@stefanprodan stefanprodan deleted the webhooks branch January 4, 2019 11:24
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.

2 participants