mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Merge pull request #16489 from mqliang/deleteFmt
replace `fmt.Sptintf()` with naive string appending
This commit is contained in:
commit
21a75abfbd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user