mirror of https://github.com/k3s-io/k3s
Merge pull request #16489 from mqliang/deleteFmt
replace `fmt.Sptintf()` with naive string appendingpull/6/head
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