Extract daemon configuration and discovery to their own package#29673
Extract daemon configuration and discovery to their own package#29673LK4D4 merged 1 commit intomoby:masterfrom
Conversation
8ede593 to
58713b2
Compare
dnephin
left a comment
There was a problem hiding this comment.
Seems like a good incremental step. Still a lot of work to do to make daemon a sane package.
cmd/dockerd/config_common_unix.go
Outdated
There was a problem hiding this comment.
CommonUnix seems like a strange name here. Maybe installUnixConfigFlags() ?
There was a problem hiding this comment.
same goes for the other CommonUnix variables
daemon/config/config.go
Outdated
There was a problem hiding this comment.
This constant appears to be only used in one place. It would be better to keep it unexported and move it to where it is used.
daemon/config/config_solaris.go
Outdated
There was a problem hiding this comment.
Is this still called? It seems like it was removed from the other platforms, so I think this might be broken on solaris.
58713b2 to
02302fb
Compare
|
@dnephin updated 👼
You don't say 😅 |
|
needs a rebase now @vdemeester 😢 |
02302fb to
719ead9
Compare
|
Hum windows failure is legit.. messed up build tags 😅 |
719ead9 to
6debd1c
Compare
6debd1c to
0f5fae8
Compare
0f5fae8 to
336992c
Compare
|
Rebased 👼 |
|
Build errors |
|
arf… damn rebase 😂 |
58d9bd8 to
a9ebdb6
Compare
a9ebdb6 to
09d5edd
Compare
09d5edd to
ad492fa
Compare
|
needs a rebase |
27fbc52 to
f01a03c
Compare
|
@vdemeester test is failing on windows; |
f01a03c to
0c9630a
Compare
|
/ping @justincormack @runcom @AkihiroSuda 😝 |
|
need rebase again ^^ @vdemeester |
This also moves some cli specific in `cmd/dockerd` as it does not really belong to the `daemon/config` package. Signed-off-by: Vincent Demeester <[email protected]>
0c9630a to
db63f93
Compare
The
daemonpackage is really big and not well unit tested. This small step extract 2 relatively less coupled functionnality ofdaemoninto their own package.This also moves some cli specific in
cmd/dockerdas it does not really belong to thedaemon/configpackage. There is still apflagsdependency on thevalueSetfield, I added a comment on that to fix.This is the coverage almost as is — just complete the
Validatetest, but the diff is getting pretty big already so I'll do a follow-up for the tests./cc @dnephin @thaJeztah @icecrime @cpuguy83 @crosbymichael @AkihiroSuda @tonistiigi
🐸
Signed-off-by: Vincent Demeester [email protected]