-
Notifications
You must be signed in to change notification settings - Fork 198
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
add netavark dns port option #1084
Conversation
- check NETAVARK_DNS_PORT env var for a different port setup - if set and not 53, setup port forwarding rules for that port and start aardvark appropriately Note: this requires containers/common#1084 to be usable by podman because just setting the env var manually will lose it for teardown, leading to the port forwading rule never being removed. Signed-off-by: Dominique Martinet <[email protected]> Fixes: containers/aardvark-dns#13
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.
Overall LGTM, just some small nits.
LGTM once comments from @Luap99 are addressed |
Signed-off-by: Dominique Martinet <[email protected]>
cni_plugin_dirs validation require directories to exist, use a directory that is more likely to exist like /tmp instead of an arbitrary path that won't exist on most systems Signed-off-by: Dominique Martinet <[email protected]>
916c926
to
30364ba
Compare
This commit allows using aardvark with an alternate port as per implementation in containers/netavark#323 Signed-off-by: Dominique Martinet <[email protected]>
30364ba
to
f0158d8
Compare
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: martinetd, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks! |
Yes that is correct |
Yes. We only back port for RHEL releases, and only under duress. :^) |
That's more than fair, thanks :) |
companion PR for containers/netavark#323
I've:
dns_bind_port
setting to structs, example config and manual pageNote the default in go is 0, which means do not set the env var. Someone setting it to 53 explicitly in the config would set the variable if we ever change the default.
dns_bind_port = yes
or other nonsensical value)If we agree on the approach merge order probably doesn't matter, but I've tested this with the PR branch and it works ok for me.
cc @Luap99