Add DefaultAddressPools to docker info#40714
Conversation
|
@thaJeztah how can I help to get this reviewed ? |
Signed-off-by: Wang Yumu <[email protected]>
There was a problem hiding this comment.
I mean this struct only used by Info struct , I see some other comments nearby like PluginsInfo is a temp struct holding Plugins name or ExecStartCheck is a temp struct used by execStart using the same word.
|
Please squash commits |
|
After squash |
There was a problem hiding this comment.
I actually just realised that for the SwarmKit default-addresspools, we use a regular []string;
Default Address Pool: 10.0.0.0/8
"DefaultAddrPool": [
"10.0.0.0/8"
],Should we do the same here?
There was a problem hiding this comment.
I think DefaultAddrPool of SwarmKit is different with DefaultAddressPools here. DefaultAddressPools contains CIDR and pool Size but DefaultAddrPool only contains CIDR, so we can not use regular []string .
"default-address-pools": [
{ "base": "10.123.0.0/16", "size": 24 },
{ "base": "10.12.0.0/16", "size": 24 }
]
There was a problem hiding this comment.
Ah, yes, I recall now that we had some back-and-forth discussion about them being different 👍
78ee620 to
067b010
Compare
|
@AkihiroSuda @cpuguy83 squashed, thanks |
|
Thanks, one more requeset: Can you make a descriptive commit message? |
49fad7b to
193f5aa
Compare
|
@cpuguy83 done, PTAL, thanks |
b1a4986 to
840a12a
Compare
|
soz I missed updating @AkihiroSuda @cpuguy83 @thaJeztah PTAL, thanks |
|
Looks like CI failed with flacky test, I tried many times locally but couldn't reprocedure it: |
|
Ignoring the CI failure as it's indeed not related |
- What I did
This PR will enhance
docker infofollowing #40388 :Originally posted by @thaJeztah in #40388 (comment)
- How I did it
add
DefaultAddressPoolsfield toAPI "/info"- How to verify it
Steps to verify:
- Description for the changelog
Add "Default Address Pools" to docker info output