-
Notifications
You must be signed in to change notification settings - Fork 137
Remove limit of one IP address per A record, modify Task.IPs behavior… #553
Conversation
… to return only IPs from first populated source
To test the changes, I've uploaded binaries here: https://github.com/drewkerrigan/mesos-dns/releases/tag/v0.7.1 |
Drew I will ask support to have a look at this. |
"ip_address": "12.0.1.3" | ||
} | ||
], | ||
"name": "dcos6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically not a problem, but lulz. ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The network name? That's actually the real default ipv6 network name in dcos :-) https://github.com/dcos/dcos/blob/270cb17ec173dc52e69892c1c3ba796414f46936/gen/calc.py#L1140
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, but that's not an ipv6 address ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, missed that!
Howdy! Thanks for taking care of this. It LGTM, but as I'm not 100% on the ramifications on other parts of DC/OS I asked internally for peeps to let me know by 2300 UTC on Wednesday if they see an issue with multiple addresses. From a DNS/Networking POV, it totes makes sense, but just want to make sure there aren't issues that we'll need to shake out elsewhere before incorporating it. If I dont' hear anything back I'll merge it on Wednesday. Happy Hacking! |
This is an issue[1] I have noticed, but since (I guess) most dcos users do not seem to use multiple ip's, this should not be much of an issue. [1] |
… to return only IPs from first populated source
Addresses #541
factories/fake.json
records/generator_test.go
ipsTo4And6
inrecords/generator.go
, it was unnecessarily limiting IP lists to a single ipv4 and ipv6 address for no good reason other than to perhaps avoid creating A records for more than one sourceTask.IPs
inrecords/state/state.go
such that it returns all ip addresses from the first populated configured sourcerecords/state/state_test.go
to pass with the newTask.IPs
behavior