-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
da34f4e
to
004290e
Compare
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
dc2fa07
to
0d58c1f
Compare
src/server/handler_app.go
Outdated
|
||
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)) |
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.
response.Conflict(req.Request, resp.ResponseWriter, fmt.Errorf("Service Name: %s already existed", p.Service.Name))
… label name for deployment/service
App is a new resource type and it will create the deployment and service in the same time.