Merge pull request #6222 from jonyhy96/add-more-description
cleanup: add more description on comment
This commit is contained in:
		| @@ -110,11 +110,11 @@ func makeSandboxName(s *runtime.PodSandboxMetadata) string { | |||||||
| // unique. | // unique. | ||||||
| func makeContainerName(c *runtime.ContainerMetadata, s *runtime.PodSandboxMetadata) string { | func makeContainerName(c *runtime.ContainerMetadata, s *runtime.PodSandboxMetadata) string { | ||||||
| 	return strings.Join([]string{ | 	return strings.Join([]string{ | ||||||
| 		c.Name,                       // 0 | 		c.Name,                       // 0: container name | ||||||
| 		s.Name,                       // 1: pod name | 		s.Name,                       // 1: pod name | ||||||
| 		s.Namespace,                  // 2: pod namespace | 		s.Namespace,                  // 2: pod namespace | ||||||
| 		s.Uid,                        // 3: pod uid | 		s.Uid,                        // 3: pod uid | ||||||
| 		fmt.Sprintf("%d", c.Attempt), // 4 | 		fmt.Sprintf("%d", c.Attempt), // 4: attempt number of creating the container | ||||||
| 	}, nameDelimiter) | 	}, nameDelimiter) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Crosby
					Michael Crosby