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

Implement odo delete component --running-in #6485

Conversation

rm3l
Copy link
Member

@rm3l rm3l commented Jan 11, 2023

What type of PR is this:
/kind feature

What does this PR do / why we need it:
See #6409 for the rationale.

Which issue(s) this PR fixes:
Fixes #6409

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

How to test changes / Special notes to the reviewer:

  • The existing behavior is not altered. If running-in is not specified, odo delete component deletes resources running in both dev and deploy. If the experimental mode is on, it also tries to delete resources deployed on Podman.
  • Use odo delete component --running-in <dev|deploy>.
  • It works with or without the --name flag, and on Podman as well.

@netlify
Copy link

netlify bot commented Jan 11, 2023

Deploy Preview for odo-docusaurus-preview ready!

Name Link
🔨 Latest commit b94c566
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/63cef13fa46f4100088cafca
😎 Deploy Preview https://deploy-preview-6485--odo-docusaurus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@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 Jan 11, 2023
@openshift-ci openshift-ci bot requested review from anandrkskd and kadel January 11, 2023 15:48
@rm3l rm3l requested review from feloy and valaparthvi and removed request for kadel and anandrkskd January 11, 2023 15:49
@odo-robot
Copy link

odo-robot bot commented Jan 11, 2023

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

@odo-robot
Copy link

odo-robot bot commented Jan 11, 2023

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

@odo-robot
Copy link

odo-robot bot commented Jan 11, 2023

NoCluster Tests on commit e636617 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jan 11, 2023

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

@odo-robot
Copy link

odo-robot bot commented Jan 11, 2023

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

@odo-robot
Copy link

odo-robot bot commented Jan 11, 2023

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

@rm3l rm3l force-pushed the 6409-odo-delete-component-running-in branch from a558005 to 4045ad0 Compare January 16, 2023 08:56
@rm3l rm3l requested a review from valaparthvi January 16, 2023 09:02
@rm3l
Copy link
Member Author

rm3l commented Jan 16, 2023

/hold

odo list tests on Podman are not passing because it seems they are run after the odo delete component tests (which currently might not delete everything when using the new --running-in flag); so odo list on Podman is finding more resources than needed because there is no resource isolation on Podman.
Looking into this issue..

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. label Jan 16, 2023
@rm3l
Copy link
Member Author

rm3l commented Jan 18, 2023

Blocked by #6499, which should allow running Podman tests in isolated namespaces.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jan 18, 2023
@rm3l rm3l mentioned this pull request Jan 20, 2023
3 tasks
@rm3l rm3l force-pushed the 6409-odo-delete-component-running-in branch from 4045ad0 to 26a11de Compare January 23, 2023 16:08
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jan 23, 2023
@rm3l
Copy link
Member Author

rm3l commented Jan 23, 2023

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. label Jan 23, 2023
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jan 23, 2023
@rm3l rm3l force-pushed the 6409-odo-delete-component-running-in branch from 26a11de to b94c566 Compare January 23, 2023 20:42
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jan 23, 2023
@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 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@rm3l
Copy link
Member Author

rm3l commented Jan 23, 2023

Rebased and force-pushed to fix Git conflicts.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jan 23, 2023
@openshift-merge-robot openshift-merge-robot merged commit 83d98c2 into redhat-developer:main Jan 23, 2023
@rm3l rm3l deleted the 6409-odo-delete-component-running-in branch January 24, 2023 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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 delete component --running-in
4 participants