Skip to content
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

Allow port-forwards to be restarted with the same local port #4097

Merged
merged 2 commits into from
Oct 21, 2021

Conversation

jim-docker
Copy link
Contributor

The current design restricts the user from restarting a port-forward with the same port. The restriction is not technically necessary, and in the event that the associated pod is terminated/restarted lifting this restriction makes it easy for the user to reconnect the port-forward. (the kubectl port-forward process does not stop when the associated pod is terminated).

Signed-off-by: Jim Ehrismann jehrismann@mirantis.com

addresses #2340

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
@jim-docker jim-docker requested a review from a team as a code owner October 20, 2021 22:09
@jim-docker jim-docker requested review from Nokel81 and aleksfront and removed request for a team October 20, 2021 22:09
@jim-docker jim-docker added the enhancement New feature or request label Oct 20, 2021
@Nokel81
Copy link
Collaborator

Nokel81 commented Oct 21, 2021

Does this completely resolve the mentioned issue?

@@ -170,7 +166,7 @@ export class PortForwardDialog extends Component<Props> {
contentClass="flex gaps column"
next={this.startPortForward}
nextLabel={this.currentPort === 0 ? "Start" : "Restart"}
disabledNext={!this.ready}
disabledNext={false}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could just be removed

Nokel81
Nokel81 previously approved these changes Oct 21, 2021
@jim-docker
Copy link
Contributor Author

Does this completely resolve the mentioned issue?

no, just wanted to make sure this PR is linked to that issue

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
@Nokel81 Nokel81 changed the title allow port-forwards to be restarted with the same local port Allow port-forwards to be restarted with the same local port Oct 21, 2021
@jim-docker jim-docker merged commit c0c0b3a into master Oct 21, 2021
@jim-docker jim-docker deleted the feature/port-forward-restart-same-port branch October 21, 2021 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants