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
[Carry 18926] Add network internal mode #19276
Conversation
@@ -113,6 +113,7 @@ This section lists each version from latest to oldest. Each listing includes a | |||
* `GET /networks` now supports filtering by `name`, `id` and `type`. | |||
* `POST /containers/create` now allows you to set the static IPv4 and/or IPv6 address for the container. | |||
* `POST /networks/(id)/connect` now allows you to set the static IPv4 and/or IPv6 address for the container. | |||
* `POST /networks/create` now supports restricting external access to the network by setting a `internal` field. |
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.
🤘
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.
an
internal field... but the CI is almost green lol
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.
actually this should be the
internal field, as @calavera privately suggested to me
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.
lol, yes, I only looked at the missing .
, haha
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.
replaced with the
, because it's a specific field, not any, like a
or an
might suggest.
LGTM |
apart from small nit, LGTM |
Thanks for carrying this. |
All the existing [OPTIONS] of I think this will keep unify style of commands and help users to understand the option better. |
@xiangpengzhao we no longer show |
Sorry for not noticing that issue:sweat_smile: |
ping @albers future |
@@ -22,6 +22,7 @@ parent = "smn_cli" | |||
--ipam-driver=default IP Address Management Driver | |||
-o --opt=map[] Set custom network plugin options | |||
--subnet=[] Subnet in CIDR format that represents a network segment | |||
--internal Restricts external access to the network |
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.
Should be upwards, just before --ip-range
.
Small nits that could be done before merging (that's why I did put it back into docs review 😝) |
good catch, @vdemeester |
Also needs a rebase 🐱 |
Signed-off-by: Chun Chen <ramichen@tencent.com> Signed-off-by: David Calavera <david.calavera@gmail.com>
fixed comments and rebased |
docs LGTM 🐹 |
all 💚 🎉 |
[Carry 18926] Add network internal mode
Not clear if this was intentional, but with Without
|
Carry #18926.
/cc @thaJeztah, @vdemeester
Signed-off-by: Chun Chen ramichen@tencent.com
Signed-off-by: David Calavera david.calavera@gmail.com