From 57480063373747b4206cb7cc4277958d54d5aaa9 Mon Sep 17 00:00:00 2001 From: haoyun Date: Tue, 9 Nov 2021 19:13:37 +0800 Subject: [PATCH] cleanup: add more description on comment Signed-off-by: haoyun --- pkg/cri/server/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cri/server/helpers.go b/pkg/cri/server/helpers.go index 42d186380..b2feb13f3 100644 --- a/pkg/cri/server/helpers.go +++ b/pkg/cri/server/helpers.go @@ -110,11 +110,11 @@ func makeSandboxName(s *runtime.PodSandboxMetadata) string { // unique. func makeContainerName(c *runtime.ContainerMetadata, s *runtime.PodSandboxMetadata) string { return strings.Join([]string{ - c.Name, // 0 + c.Name, // 0: container name s.Name, // 1: pod name s.Namespace, // 2: pod namespace s.Uid, // 3: pod uid - fmt.Sprintf("%d", c.Attempt), // 4 + fmt.Sprintf("%d", c.Attempt), // 4: attempt number of creating the container }, nameDelimiter) }