-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Support EXPOSE with port ranges #12305
Support EXPOSE with port ranges #12305
Conversation
LGTM |
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.
LGTM but we need a regression test. Can you add a test to https://github.com/containers/podman/blob/main/test/e2e/run_networking_test.go?
Code LTGM, as others have noted, a new test is needed. |
I'll drop an LGTM for the record |
913015b
to
e6299a8
Compare
/lgtm |
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.
I do not think the test works at the moment, you also have to check the container ports
@colinbendell Note that CI test are failing at the moment for unrelated reasons, see #12343. |
Fixes issue containers#12293. EXPOSE directive in images should mirror the --expose parameter. Specifically `EXPOSE 20000-20100/tcp` should work the same as `--expose 20000-20100/tcp` Signed-off-by: Colin Bendell <[email protected]>
5dff093
to
0cfa255
Compare
Signed-off-by: Colin Bendell <[email protected]>
0cfa255
to
d173ebc
Compare
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: colinbendell, Luap99, rhatdan 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 |
/lgtm |
/retest |
@colinbendell: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
Should I just re-run the
|
/hold cancel |
Fixes issue #12293. EXPOSE directive in images should mirror the
--expose
parameter. SpecificallyEXPOSE 20000-20100/tcp
should work the sameas--expose 20000-20100/tcp
Signed-off-by: Colin Bendell [email protected]
What this PR does / why we need it:
Reuses the
specgenutil.CreateExpose
logic for parsing--expose
parameters when parsingEXPOSE
image directives.How to verify it
podman build --tag portrangetest .
podman run --rm -it -P portrangetest
Which issue(s) this PR fixes:
Fixes #12293
Special notes for your reviewer: