Skip to content
Snippets Groups Projects
Commit 98311071 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3961 - update user finalizer

parent 59e25bc7
No related branches found
No related tags found
No related merge requests found
...@@ -81,9 +81,7 @@ public class KeycloakUserReconciler implements Reconciler<OzgKeycloakUser>, Clea ...@@ -81,9 +81,7 @@ public class KeycloakUserReconciler implements Reconciler<OzgKeycloakUser>, Clea
return DeleteControl.defaultDelete(); return DeleteControl.defaultDelete();
} catch (Exception e) { } catch (Exception e) {
log.log(Level.SEVERE, "Could not delete user " + crd.getMetadata().getName() + " in namespace " + crd.getMetadata().getNamespace(), e); log.log(Level.SEVERE, "Could not delete user " + crd.getMetadata().getName() + " in namespace " + crd.getMetadata().getNamespace(), e);
crd.setStatus(OzgKeycloakUserStatus.builder().status(OzgCustomResourceStatus.ERROR).message(e.getMessage()).build()); return DeleteControl.defaultDelete();
UpdateControl.updateStatus(crd);
return DeleteControl.noFinalizerRemoval();
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment