mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
pkg/kubelet/network/dns: omit unnecessary fmt.Sprintf
This commit is contained in:
parent
7061704297
commit
6553ba246f
@ -319,7 +319,7 @@ func getPodDNSType(pod *v1.Pod) (podDNSType, error) {
|
||||
}
|
||||
// This should not happen as kube-apiserver should have rejected
|
||||
// invalid dnsPolicy.
|
||||
return podDNSCluster, fmt.Errorf(fmt.Sprintf("invalid DNSPolicy=%v", dnsPolicy))
|
||||
return podDNSCluster, fmt.Errorf("invalid DNSPolicy=%v", dnsPolicy)
|
||||
}
|
||||
|
||||
// mergeDNSOptions merges DNS options. If duplicated, entries given by PodDNSConfigOption will
|
||||
|
Loading…
Reference in New Issue
Block a user