mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #114178 from Octopusjust/k8s-pr19
pkg/kubelet/network/dns: omit unnecessary `fmt.Sprintf`
This commit is contained in:
commit
767de11f88
@ -319,7 +319,7 @@ func getPodDNSType(pod *v1.Pod) (podDNSType, error) {
|
|||||||
}
|
}
|
||||||
// This should not happen as kube-apiserver should have rejected
|
// This should not happen as kube-apiserver should have rejected
|
||||||
// invalid dnsPolicy.
|
// 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
|
// mergeDNSOptions merges DNS options. If duplicated, entries given by PodDNSConfigOption will
|
||||||
|
Loading…
Reference in New Issue
Block a user