-
Notifications
You must be signed in to change notification settings - Fork 947
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
fix update spec annotation in runtime spec to support comma #2780
fix update spec annotation in runtime spec to support comma #2780
Conversation
Signed-off-by: allen.wang <allen.wq@alipay.com>
Codecov Report
@@ Coverage Diff @@
## master #2780 +/- ##
=========================================
+ Coverage 68.64% 69.3% +0.65%
=========================================
Files 277 277
Lines 17425 17425
=========================================
+ Hits 11961 12076 +115
+ Misses 4108 4021 -87
+ Partials 1356 1328 -28
|
@@ -55,7 +55,7 @@ func (uc *UpdateCommand) addFlags() { | |||
flagSet.StringSliceVarP(&uc.labels, "label", "l", nil, "Update labels for container") | |||
flagSet.StringVar(&uc.restartPolicy, "restart", "", "Restart policy to apply when container exits") | |||
flagSet.StringSliceVar(&uc.diskQuota, "disk-quota", nil, "Update disk quota for container(/=10g)") | |||
flagSet.StringSliceVar(&uc.specAnnotation, "annotation", nil, "Update annotation for runtime spec") | |||
flagSet.StringArrayVar(&uc.specAnnotation, "annotation", nil, "Update annotation for runtime spec") |
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.
Could you add more detailed description of specAnnotation
in swagger:
SpecAnnotation:
description: "annotations send to runtime spec."
type: "object"
additionalProperties:
type: "string"
Actually, users can hardly understand the actual meaning of it. Can you add some example for it in swagger.yml? @wangforthinker
|
Signed-off-by: allen.wang allen.wq@alipay.com
Ⅰ. Describe what this PR did
fix cli update to support comma in annotation update.
Ⅱ. Does this pull request fix one issue?
none.
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
add cases.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews