Skip to content

Commit

Permalink
cleanup: add more description on comment
Browse files Browse the repository at this point in the history
Signed-off-by: haoyun <yun.hao@daocloud.io>
  • Loading branch information
jonyhy96 committed Nov 9, 2021
1 parent 7020719 commit 5748006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cri/server/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 5748006

Please sign in to comment.