Merge pull request #97314 from abowloflrf/patch-1

fix typo in dns.go
This commit is contained in:
Kubernetes Prow Robot 2021-01-06 15:21:45 -08:00 committed by GitHub
commit 81b13a912c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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