Merge pull request #12608 from johngmyers/external-ipv6

dns-controller: Treat IPv6 node addresses as both internal and external
This commit is contained in:
Kubernetes Prow Robot 2021-10-26 10:25:30 -07:00 committed by GitHub
commit bfaee4e6ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ func (c *NodeController) updateNodeRecords(node *v1.Node) string {
// node/<name>/external -> ExternalIP
for _, a := range node.Status.Addresses {
if a.Type != v1.NodeExternalIP {
if a.Type != v1.NodeExternalIP && (a.Type != v1.NodeInternalIP || !utils.IsIPv6IP(a.Address)) {
continue
}
var recordType dns.RecordType = dns.RecordTypeA