-
Notifications
You must be signed in to change notification settings - Fork 243
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 --wait
flag for odo project delete
#1884
Comments
Hey @kadel , I'm just reviewing this issue, if I recall correctly, don't we already wait for the project to be deleted? When we run |
ping @girishramnani |
**What kind of PR is this?** <!-- DELETE the kind(s) which are not applicable before opening the PR. --> /kind feature /kind enhancement **What does does this PR do / why we need it**: Adds `--wait` parameter. Ex. `odo project delete myproject --wait` **Which issue(s) this PR fixes**: Fixes redhat-developer#1884 **How to test changes / Special notes to the reviewer**: ```sh odo project create foobar odo project delete foobar --wait ``` Signed-off-by: Charlie Drage <charlie@charliedrage.com>
**What kind of PR is this?** <!-- DELETE the kind(s) which are not applicable before opening the PR. --> /kind feature /kind enhancement **What does does this PR do / why we need it**: Adds `--wait` parameter. Ex. `odo project delete myproject --wait` **Which issue(s) this PR fixes**: Fixes redhat-developer#1884 **How to test changes / Special notes to the reviewer**: ```sh odo project create foobar odo project delete foobar --wait ``` Signed-off-by: Charlie Drage <charlie@charliedrage.com>
Se my current implementation: #2397 I'm having major troubles mitigating ONE niche case and that's essentially when you run Here's essentially the TLDR;
The project is deleted asynchronously by OpenShift. We cannot control this. OpenShift will delete all the pods + project + etc when it wants. No amount of code can fix this. My implementation #2397 even waits for all pods to be deleted, but to no avail. You must wait until the project is completely closed by OpenShift. This is actually a "feature" of OpenShift and no amount of code would fix it. For example, if you were to create a watch for Project or even Pods (from the deleted project) it'd fail. OpenShift says it's deleted.. Here's an explanation of what happens by Will Gordon @ Red Hat from https://stackoverflow.com/questions/48208001/deleted-openshift-online-pro-project-has-left-a-trace-so-cannot-create-project-o
So for the niche case of: odo project delete foobar --wait
# create a few components here
odo project create foobar We cannot support it. You will have to literally wait for your cluster to automatically delete the project. In the case of |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
/lifecycle frozen |
[kind/Enhancement]
Which functionality do you think we should update/improve?
Add
--wait
flag inodo project delete
similar toodo project create
Why is this needed?
Reference:
waitForProjectToBeGone
from #1739as of now, vscode plugin relies on,
The text was updated successfully, but these errors were encountered: