Skip to content

Commit

Permalink
break on dns assignment instead of looping through it all
Browse files Browse the repository at this point in the history
  • Loading branch information
curtbushko committed Jul 25, 2022
1 parent da6de92 commit 832b791
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions control-plane/cni/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ func searchDNSIPFromEnvironment(pod corev1.Pod, prefix string) string {
for k := range vars {
if vars[k].Name == dnsName {
result = vars[k].Value
break
}
}
return result
Expand Down

0 comments on commit 832b791

Please sign in to comment.