-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix network.dns interpolation #12817
Conversation
@@ -1041,10 +1041,11 @@ func (tr *TaskRunner) buildTaskConfig() *drivers.TaskConfig { | |||
if alloc.AllocatedResources != nil && len(alloc.AllocatedResources.Shared.Networks) > 0 { | |||
allocDNS := alloc.AllocatedResources.Shared.Networks[0].DNS | |||
if allocDNS != nil { | |||
interpolatedNetworks := taskenv.InterpolateNetworks(env, alloc.AllocatedResources.Shared.Networks) |
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.
My suspicion is that there should be a better place to put this (ie this should probably be in a hook file), but this does have the value of actually working
Now that hashicorp/nomad#12817 is merged in as of Nomad 1.3.2, we should stop using the hax to get the host IP and instead use Nomad's native method to get the host IP.
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This fixes #12780
When #12021 was introduced, it doesn't actually work for the group -> network -> dns stanza. This PR finishes the work to get network.dns interpolation working, by actually using the interpolated DNS values.