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

odo dev: handle port forwarding after pod restart #5885

Merged

Conversation

feloy
Copy link
Contributor

@feloy feloy commented Jun 28, 2022

What type of PR is this:

/kind feature

What does this PR do / why we need it:

Which issue(s) this PR fixes:

Fixes #5866

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

How to test changes / Special notes to the reviewer:

@openshift-ci openshift-ci bot added the kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation label Jun 28, 2022
@feloy feloy requested review from dharmit and rm3l June 28, 2022 08:34
@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jun 28, 2022
@openshift-ci openshift-ci bot requested review from cdrage and rnapoles-rh June 28, 2022 08:35
@netlify
Copy link

netlify bot commented Jun 28, 2022

Deploy Preview for odo-docusaurus-preview canceled.

Name Link
🔨 Latest commit 8bc71a6
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/62beadecc844db00093361a3

@feloy feloy force-pushed the feature-5866/restart-port-forward branch from 4a43631 to 2c4fd9d Compare June 28, 2022 08:41
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jun 28, 2022
@odo-robot
Copy link

odo-robot bot commented Jun 28, 2022

Unit Tests on commit c7b1bcf finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 28, 2022

Kubernetes Tests on commit c7b1bcf finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 28, 2022

Windows Tests (OCP) on commit c7b1bcf finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 28, 2022

OpenShift Tests on commit c7b1bcf finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 28, 2022

Validate Tests on commit c7b1bcf finished successfully.
View logs: TXT HTML

Copy link
Member

@dharmit dharmit left a comment

Choose a reason for hiding this comment

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

Clearly I'm struggling a bit with channels used for communicating start/stop of port-forwarding.

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jun 28, 2022
@feloy feloy force-pushed the feature-5866/restart-port-forward branch from 261ebc9 to 6c4416f Compare June 29, 2022 07:15
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jun 29, 2022
@feloy feloy requested review from dharmit and removed request for cdrage and rnapoles-rh June 29, 2022 07:25
@dharmit
Copy link
Member

dharmit commented Jun 29, 2022

@feloy the message about port-forwarding is appearing quite early:
Screenshot from 2022-06-29 16-40-25

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jun 29, 2022
@feloy feloy force-pushed the feature-5866/restart-port-forward branch from 7c20ce3 to e7bc96f Compare June 29, 2022 12:49
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jun 29, 2022
Copy link
Member

@dharmit dharmit left a comment

Choose a reason for hiding this comment

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

Mostly lgtm.

@dharmit
Copy link
Member

dharmit commented Jun 30, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jun 30, 2022
@feloy feloy closed this Jun 30, 2022
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jun 30, 2022
@dharmit
Copy link
Member

dharmit commented Jul 1, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jul 1, 2022
@feloy feloy force-pushed the feature-5866/restart-port-forward branch from edc703e to 8bc71a6 Compare July 1, 2022 08:18
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jul 1, 2022
@feloy feloy closed this Jul 2, 2022
@feloy feloy reopened this Jul 2, 2022
@feloy feloy closed this Jul 4, 2022
@feloy feloy reopened this Jul 4, 2022
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@rm3l rm3l left a comment

Choose a reason for hiding this comment

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

LGTM, but I had a small comment below.

@openshift-ci
Copy link

openshift-ci bot commented Jul 4, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rm3l

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Jul 4, 2022
@dharmit
Copy link
Member

dharmit commented Jul 4, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jul 4, 2022
@feloy
Copy link
Contributor Author

feloy commented Jul 4, 2022

/override ci/prow/v4.10-integration-e2e

@openshift-ci
Copy link

openshift-ci bot commented Jul 4, 2022

@feloy: Overrode contexts on behalf of feloy: ci/prow/v4.10-integration-e2e

In response to this:

/override ci/prow/v4.10-integration-e2e

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.

@openshift-ci openshift-ci bot merged commit 336b9e1 into redhat-developer:main Jul 4, 2022
cdrage pushed a commit to cdrage/odo that referenced this pull request Aug 31, 2022
)

* Move port forwarding to reconcile loop

* Add integration test

* Fix dependencies on cli/dev + remove message to restart odo dev after devfile.yaml changes

* Restart port forwarding when endpoints are modified in Devfile

* Fix setNamespace

* Fix componentName

* Move message back to CLI

* add doc

* Move port forwarding after starting application

* Remove unnecessary dependency to State module

* Fix err
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

odo dev: handle port forwarding after pod restart
3 participants