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

[Task] Support the new type App #266

Merged
merged 7 commits into from
Aug 22, 2018
Merged

[Task] Support the new type App #266

merged 7 commits into from
Aug 22, 2018

Conversation

hwchiu
Copy link
Contributor

@hwchiu hwchiu commented Aug 21, 2018

App is a new resource type and it will create the deployment and service in the same time.

@hwchiu hwchiu force-pushed the hwchiu/support-app branch from da34f4e to 004290e Compare August 21, 2018 07:43
@codecov-io
Copy link

codecov-io commented Aug 21, 2018

Codecov Report

Merging #266 into develop will increase coverage by 0.98%.
The diff coverage is 56.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop    #266      +/-   ##
==========================================
+ Coverage    79.41%   80.4%   +0.98%     
==========================================
  Files           55      56       +1     
  Lines         3027    3276     +249     
==========================================
+ Hits          2404    2634     +230     
- Misses         469     485      +16     
- Partials       154     157       +3
Impacted Files Coverage Δ
src/deployment/deployment.go 94.77% <100%> (+0.15%) ⬆️
src/server/handler_app.go 51.85% <51.85%> (ø)
src/server/route.go 84.07% <83.33%> (-0.05%) ⬇️
src/pod/pod.go 96.8% <0%> (+2.65%) ⬆️
src/prometheuscontroller/controller.go 89.72% <0%> (+3.08%) ⬆️

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 5da8960...946f235. Read the comment docs.

@hwchiu hwchiu force-pushed the hwchiu/support-app branch from dc2fa07 to 0d58c1f Compare August 21, 2018 08:18

if err := session.Insert(entity.ServiceCollectionName, &p.Service); err != nil {
if mgo.IsDup(err) {
response.Conflict(req.Request, resp.ResponseWriter, fmt.Errorf("Deployment Name: %s already existed", p.Deployment.Name))
Copy link
Contributor

Choose a reason for hiding this comment

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

response.Conflict(req.Request, resp.ResponseWriter, fmt.Errorf("Service Name: %s already existed", p.Service.Name))

@John-Lin John-Lin merged commit 9c13cab into develop Aug 22, 2018
@John-Lin John-Lin deleted the hwchiu/support-app branch August 22, 2018 15:19
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.

3 participants