daemon: propagate exec-root to libnetwork-setkey#37850
Conversation
957448a to
f35e839
Compare
|
CI failing: Seems hitting 😢 |
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
f35e839 to
4038520
Compare
Codecov Report
@@ Coverage Diff @@
## master #37850 +/- ##
=========================================
Coverage ? 36.14%
=========================================
Files ? 610
Lines ? 45085
Branches ? 0
=========================================
Hits ? 16296
Misses ? 26551
Partials ? 2238 |
|
renamed /tmp/docker-execroot to /tmp/dxr |
selansen
left a comment
There was a problem hiding this comment.
Thanks @AkihiroSuda . LGTM
thaJeztah
left a comment
There was a problem hiding this comment.
generally LGTM, but left one question 😅
| Prestart: []specs.Hook{{ | ||
| Path: target, | ||
| Args: []string{"libnetwork-setkey", c.ID, daemon.netController.ID()}, | ||
| Args: []string{"libnetwork-setkey", "-exec-root=" + daemon.configStore.GetExecRoot(), c.ID, daemon.netController.ID()}, |
There was a problem hiding this comment.
Ah, just realized this uses a single dash for the flag (-exec-root, not --exec-root) probably because it's using the standard flag library..
Should we only pass this option if it's not the default, or pass it in all situations? (not sure I have a real preference, just putting it here so that we can discuss)
There was a problem hiding this comment.
I prefer passing it in all situations for better code readability
There was a problem hiding this comment.
Alright; it was not a blocker, just a question, so let's get this merged 👍 thanks!
Signed-off-by: Grant Millar <rid@cylo.io> Upstream-commit: df7b8f458aec29400c76b8dc87b3ce087d3fa76c Component: engine
Signed-off-by: Akihiro Suda suda.akihiro@lab.ntt.co.jp
- What I did
propagate
exec-roottolibnetwork-setkey- How I did it
moby/libnetwork#2248
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)
🐧