-
Notifications
You must be signed in to change notification settings - Fork 950
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
cri: add default annotation sandboxid #2254
Conversation
for vm level runtime, add default annotation io.kubernetes.cri-o.SandboxID when create container in sanbox. Signed-off-by: Ace-Tang <aceapril@126.com>
Codecov Report
@@ Coverage Diff @@
## master #2254 +/- ##
==========================================
- Coverage 66.77% 66.72% -0.06%
==========================================
Files 208 208
Lines 16923 16925 +2
==========================================
- Hits 11301 11293 -8
- Misses 4262 4266 +4
- Partials 1360 1366 +6
|
@@ -14,6 +14,9 @@ const ( | |||
// SandboxName is the sandbox name annotation | |||
SandboxName = "io.kubernetes.cri-o.SandboxName" |
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.
Actually, I think this shoud be SanboxID
, but not SanboxName
.
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.
It will use SandboxName
as sharedContainer for runv, please refer to https://github.com/hyperhq/runv/blob/master/cli/create.go#L96
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.
OK, since kata need SandboxID
, just append it.
LGTM. |
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.
LGTM
for vm level runtime, add default annotation
io.kubernetes.cri-o.SandboxID when create container
in sanbox.
Signed-off-by: Ace-Tang aceapril@126.com
Ⅰ. Describe what this PR did
As for kata, the default annotation is
I also wonder whether cri mistake
SandboxName
asSandboxID
as default annotation, @YaoZengzeng @starnopⅡ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
no.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews