Skip to content

Commit ac5d681

Browse files
Merge pull request #50 from Fedosin/set_node_internal_dns
Add InternalDNS annotation
2 parents 243b762 + 4d5dae2 commit ac5d681

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/cloud/openstack/machine/actuator.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,11 @@ func (oc *OpenstackClient) updateAnnotation(machine *machinev1.Machine, id strin
421421
Address: machine.Name,
422422
})
423423

424+
networkAddresses = append(networkAddresses, corev1.NodeAddress{
425+
Type: corev1.NodeInternalDNS,
426+
Address: machine.Name,
427+
})
428+
424429
machineCopy := machine.DeepCopy()
425430
machineCopy.Status.Addresses = networkAddresses
426431

0 commit comments

Comments
 (0)