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 port-forward functionalities to virtctl vmexport #10148
Conversation
78c7282
to
022607a
Compare
VirtualMachineExport volumes are only downloadable outside the cluster when proper ingress or routes are configured. In some cases it's useful to force a way to download the volumes without this configuration, so this commit introduces an option to set port-forwarding using the vmexport service, so we can get the vmexport contents outside the cluster without additional configuration. Signed-off-by: Alvaro Romero <alromero@redhat.com>
61dfa61
to
566a1a8
Compare
…-dump Signed-off-by: Alvaro Romero <alromero@redhat.com>
015a3e9
to
1fb27ec
Compare
/retest-required |
/test pull-kubevirt-e2e-k8s-1.25-sig-compute-migrations |
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.
looks good, just a few nitpicks
Signed-off-by: Alvaro Romero <alromero@redhat.com>
1fb27ec
to
c1e2a2d
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
/retest-required |
/retest |
@alromeros looks good but wondering why user must supply a port number? Can't one be chosen randomly or just listen on "127.0.0.1:0" and check the returned listener address? |
I assumed it was simply better to allow users to specify the port number. I can change it, but other than being less straightforward the current implementation seems more robust to me. wdyt? If you want I can make the port random. |
I think that the user shouldn't have to care about the port since the tunnel is transient and only exists during command execution. I am not against giving the user an option to explicitly specify the port though |
Okay, in that case, I will change the |
This commit allows using port-forward without specifying any specific port number. Port forward will listen on a random available port. Signed-off-by: Alvaro Romero <alromero@redhat.com>
3202f71
to
6f2d4c2
Compare
/test pull-kubevirt-e2e-k8s-1.27-sig-compute-migrations |
/test pull-kubevirt-e2e-k8s-1.27-sig-compute-migrations |
/lgtm Great job! Should update the PR description to reflect new args/usage |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mhenriks 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 |
What this PR does / why we need it:
VirtualMachineExport volumes are only downloadable outside the cluster when proper ingress or routes are configured.
In some cases, it's helpful to force a way to download the volumes without this configuration, so this pull request introduces an option to set port-forwarding using the vmexport service so that we can get the vmexport contents outside the cluster without additional configuration.
Usage examples:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Release note: