-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[CI:DOCS] docs: deprecate pasta network name #16489
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99 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 |
@mheon @sbrivio-rh PTAL |
@@ -74,3 +74,6 @@ Valid _mode_ values are: | |||
- **pasta:-T,5201**: enable forwarding of TCP port 5201 from container to | |||
host, using the loopback interface instead of the tap interface for improved | |||
performance | |||
|
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.
If you want the note below to appear, in the man page, together with the paragraph above (same indentation), you need to drop this newline and add a trailing \
above -- that's (unfortunately) how this Markdown is converted.
If that was not the intention, you can leave it like you did. I checked both versions and I really can't decide myself which one looks better -- I think it's fine either way.
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.
It should be under the pasta point not the examples list, if I render this locally it is on the same level as Some examples:
which is what I want
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.
This is how it renders for me, man ./docs/build/man/podman-run.1
with 80 columns, man 2.11.0 and GNU nroff 1.22.4:
Some examples:
• pasta:--map-gw: Allow the container to directly reach the
host using the gateway address.
• pasta:--mtu,1500: Specify a 1500 bytes MTU for the tap in‐
terface in the container.
• pasta:--ipv4-only,-a,10.0.2.0,-n,24,-g,10.0.2.2,--dns-for‐
ward,10.0.2.3,-m,1500,--no-ndp,--no-dhcpv6,--no-dhcp, equiv‐
alent to default slirp4netns(1) options: disable IPv6, as‐
sign 10.0.2.0/24 to the tap0 interface in the container,
with gateway 10.0.2.3, enable DNS forwarder reachable at
10.0.2.3, set MTU to 1500 bytes, disable NDP, DHCPv6 and
DHCP support.
• pasta:-I,tap0,--ipv4-only,-a,10.0.2.0,-n,24,-g,10.0.2.2,--dns-
forward,10.0.2.3,--no-ndp,--no-dhcpv6,--no-dhcp, equivalent
to default slirp4netns(1) options with Podman overrides:
same as above, but leave the MTU to 65520 bytes
• pasta:-t,auto,-u,auto,-T,auto,-U,auto: enable automatic port
forwarding based on observed bound ports from both host and
container sides
• pasta:-T,5201: enable forwarding of TCP port 5201 from con‐
tainer to host, using the loopback interface instead of the
tap interface for improved performance
NOTE: For backwards compatibility reasons if you have a network
named pasta podman will use this instead. In order to use the
pasta binary you need to remove this network.
I can look into how this is built on my system if it helps -- ./test/tools/build/go-md2man
doesn't give me a version string but I suppose it just matches git HEAD
.
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.
you are right, I only looked the the rendered markdown not the rendered man page.
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.
By the way, that's because of:
Some examples:
.RS
.IP \(bu 2
[...]
.RE
NOTE: For backwards compatibility reasons if you have a network named \fB\fCpasta\fR podman will use this instead.
In order to use the pasta binary you need to remove this network.
.RE
that first .RE
(margin reset), which shouldn't be there. I think it's because md2man
mistakes the whole thing as a BlockQuote
instead of a Paragraph
in RenderNode()
.
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.
On the other hand, if you want to keep it as a paragraph as defined by CommonMark, you would have to add whitespace on that blank line, because "Paragraphs can contain multiple lines, but no blank lines", and yet you want line breaks. And that's rejected by some linter that will scan this file (I don't remember the details).
I can't think of any solution with the given tools at the moment -- I'd rather leave it like you have it.
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.
agreed, lets keep it as it.
Other than that comment, changes look good to me, thanks for adding this! Not sure if this works: |
@sbrivio-rh: changing LGTM is restricted to collaborators In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Since pasta is now considered a network mode using it as network name causes a conflict. For now we will prefer the named network but in a future major version bump we want to remove this and just use pasta(1). The docs should reflect that this name is considered deprecated. Signed-off-by: Paul Holzinger <[email protected]>
Changes still look good to me.
|
/lgtm |
Since pasta is now considered a network mode using it as network name causes a conflict. For now we will prefer the named network but in a future major version bump we want to remove this and just use pasta(1).
The docs should reflect that this name is considered deprecated.
Does this PR introduce a user-facing change?