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

Delete dev resources only when stopping Dev session #5751

Merged

Conversation

feloy
Copy link
Contributor

@feloy feloy commented May 18, 2022

What type of PR is this:

/kind bug

What does this PR do / why we need it:

Which issue(s) this PR fixes:

Fixes #5700

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

How to test changes / Special notes to the reviewer:

@netlify
Copy link

netlify bot commented May 18, 2022

Deploy Preview for odo-docusaurus-preview canceled.

Name Link
🔨 Latest commit b207513
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/62861e12e8018f0008f8b2e4

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label May 18, 2022
@openshift-ci openshift-ci bot requested review from cdrage and dharmit May 18, 2022 11:55
@odo-robot
Copy link

odo-robot bot commented May 18, 2022

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

@odo-robot
Copy link

odo-robot bot commented May 18, 2022

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

@odo-robot
Copy link

odo-robot bot commented May 18, 2022

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

@odo-robot
Copy link

odo-robot bot commented May 18, 2022

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

@odo-robot
Copy link

odo-robot bot commented May 18, 2022

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

@feloy feloy requested review from rm3l and removed request for cdrage May 18, 2022 12:49
pkg/component/delete/delete.go Outdated Show resolved Hide resolved
@dharmit
Copy link
Member

dharmit commented May 19, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label May 19, 2022
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 after testing this fix, but I added a few minor comments on the doc.

@@ -41,6 +41,9 @@ In the above example, three things have happened:
* `odo` has port-forwarded your application for local accessability
* `odo` will watch for changes in the current directory and rebuild the application when changes are detected

You can press Ctrl-c at any time to terminate the development session. The command can take a few moment to terminate, as it
Copy link
Member

Choose a reason for hiding this comment

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

I think it should be: "can take a moment" or "can take a few moments".
But maybe a native English speaker could correct me? @dharmit ? ^^

Suggested change
You can press Ctrl-c at any time to terminate the development session. The command can take a few moment to terminate, as it
You can press Ctrl-c at any time to terminate the development session. The command can take a few moments to terminate, as it

Copy link
Member

Choose a reason for hiding this comment

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

I did notice it, but didn't bring it up. However, I completely agree with your take on this.

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. Required by Prow. label May 19, 2022
@feloy feloy force-pushed the bugfix-5700/delete-dev-only branch from 2a36ba7 to b207513 Compare May 19, 2022 10:38
@sonarqubecloud
Copy link

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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@rm3l
Copy link
Member

rm3l commented May 19, 2022

/approve

@openshift-ci
Copy link

openshift-ci bot commented May 19, 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 May 19, 2022
@feloy feloy requested a review from dharmit May 19, 2022 12:54
@dharmit
Copy link
Member

dharmit commented May 19, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label May 19, 2022
@openshift-merge-robot openshift-merge-robot merged commit 5fef442 into redhat-developer:main May 19, 2022
cdrage pushed a commit to cdrage/odo that referenced this pull request Aug 31, 2022
…#5751)

* Add integration test

* Fix issue

* doc

* Update pkg/component/delete/delete.go

Co-authored-by: Dharmit Shah <[email protected]>

* Review

Co-authored-by: Dharmit Shah <[email protected]>
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/bug Categorizes issue or PR as related to a bug. 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.

Stopping odo dev also removes "odo deploy"ed resources
4 participants