-
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
Add --publish-all
flag for kube play
#18557
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Shikachuu The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Please update man pages. |
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.
Thanks!
We also need to add a test or two.
@@ -100,6 +101,7 @@ func KubePlay(w http.ResponseWriter, r *http.Request) { | |||
PublishPorts: query.PublishPorts, | |||
Wait: query.Wait, | |||
ServiceContainer: query.ServiceContainer, | |||
PublishAll: query.PublishAll, |
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.
For this to work remotely, we also need to touch pkg/bindings
. Those are the go-bindings podman-remote
uses. In case the client does not set the publish-all parameter, we should query contianers.conf here and use the configured defaults on the server side.
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.
Since it is mostly generated code I might need some guidance.
The PlayOptions
in pkg/binding/kube/types.go
needs to be modified right?
After that we need to check if the flag is checked in the PlayWithBody
func in the pkg/binding/kube/kube.go
if I'm not mistaken.
Where and how should I run the generate command?
Currently I'm not sure how and where should I query the containers.conf
may I require some aditional information about where should we do that exactly?
Signed-off-by: Czékus Máté <[email protected]>
6f6ddb0
to
567e456
Compare
Sure! After that I'll add test cases for each of the above mentioned use cases. |
@Shikachuu: both the commit message and pull request description are outdated; could they be changed? In brief, they are not reflecting recent decisions in #17028 where the My own summary:
The start (v4.3.0) of the version range is based on when #15946 was first included. The end (current release v4.5.0) of the version range depends on which release this pull request is first included. |
A friendly reminder that this PR had no activity for 30 days. |
PR needs rebase. 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. |
@Shikachuu Still working on this? |
Does this PR introduce a user-facing change?
Closes #17028