mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
commit
81b13a912c
@ -278,7 +278,7 @@ func getPodDNSType(pod *v1.Pod) (podDNSType, error) {
|
|||||||
if !kubecontainer.IsHostNetworkPod(pod) {
|
if !kubecontainer.IsHostNetworkPod(pod) {
|
||||||
return podDNSCluster, nil
|
return podDNSCluster, nil
|
||||||
}
|
}
|
||||||
// Fallback to DNSDefault for pod on hostnetowrk.
|
// Fallback to DNSDefault for pod on hostnetwork.
|
||||||
fallthrough
|
fallthrough
|
||||||
case v1.DNSDefault:
|
case v1.DNSDefault:
|
||||||
return podDNSHost, nil
|
return podDNSHost, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user