Commit 21a75abf authored by Alex Robinson's avatar Alex Robinson

Merge pull request #16489 from mqliang/deleteFmt

replace `fmt.Sptintf()` with naive string appending
parents cc536193 5b03cfc9
......@@ -358,7 +358,7 @@ func (p *Pod) IsEmpty() bool {
func GetPodFullName(pod *api.Pod) string {
// Use underscore as the delimiter because it is not allowed in pod name
// (DNS subdomain format), while allowed in the container name format.
return fmt.Sprintf("%s_%s", pod.Name, pod.Namespace)
return pod.Name + "_" + pod.Namespace
}
// Build the pod full name from pod name and namespace.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment