-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Don't fail in deleteIfManaged
when the namespace/project is not managed
#15688
Don't fail in deleteIfManaged
when the namespace/project is not managed
#15688
Conversation
…aged. Instead, ignore the request silently. That seems to be the original intention based on the usage of the method everywhere else but the test suite 8-| Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
ci-build |
ci-test |
crw-ci-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
.../java/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/KubernetesNamespace.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments a bit outside from your changes. However, kubernetes and OS logic is the same, but code is a bit off.
...c/main/java/org/eclipse/che/workspace/infrastructure/openshift/project/OpenShiftProject.java
Show resolved
Hide resolved
...c/main/java/org/eclipse/che/workspace/infrastructure/openshift/project/OpenShiftProject.java
Show resolved
Hide resolved
.../java/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/KubernetesNamespace.java
Show resolved
Hide resolved
.../java/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/KubernetesNamespace.java
Show resolved
Hide resolved
.../java/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/KubernetesNamespace.java
Outdated
Show resolved
Hide resolved
.../java/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/KubernetesNamespace.java
Show resolved
Hide resolved
.../java/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/KubernetesNamespace.java
Show resolved
Hide resolved
a namespace. Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
Can one of the admins verify this patch? |
…tempt-to-delete-non-managed-namespace Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
I agree to the degree that I already filed an issue a couple of months ago :) - #15250 I think we should not embark on such a potentially big refactoring in a small bugfix like this. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
E2E tests of Eclipse Che Multiuser on OCP has been successful:
|
crw-ci-test |
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
…aged (#15688) Don't fail in `deleteIfManaged` when the namespace/project is not managed. Instead, ignore the request silently. That seems to be the original intention based on the usage of the method everywhere else but the test suite 8-| Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
What does this PR do?
Don't fail in
deleteIfManaged
when the namespace/project is not managed.Instead, ignore the request silently.
That seems to be the original intention based on the usage of the method
everywhere else but the test suite 8-|
This bug manifested itself as unnecessary warnings about the inability to delete the namespace/project when a workspace was deleted.
What issues does this PR fix or reference?
#15686