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

Merge branch 'master' into OZG-6495

parents 95dc59a9 8d0968b4
Branches
Tags
No related merge requests found
......@@ -69,7 +69,7 @@ public class KeycloakRealmReconciler implements Reconciler<OzgCloudKeycloakRealm
LOG.info("keep data");
return DeleteControl.defaultDelete();
}
if (!service.realmExists(realm.getMetadata().getName())) {
if (!service.realmExists(realm.getMetadata().getNamespace())) {
return DeleteControl.defaultDelete();
}
return deleteRealm(realm);
......
......@@ -134,7 +134,7 @@ class KeycloakRealmReconcilerTest {
void shouldCallRealmExists() {
reconciler.cleanup(realm, null);
verify(service).realmExists(realm.getMetadata().getName());
verify(service).realmExists(OzgCloudKeycloakRealmTestFactory.METADATA_NAMESPACE);
}
@Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment