*Creation*
The KeycloakRealm resource will specify When a new keycloak realm name and a is added to the keycloak id resource, its {code} status . It may become more advanced in the future but for now this is enough phase {code} should be set to get started modified or empty if the keycloak resource has just been created . - When the operator sees this resource it should mark its status as accepted - It should look up the keycloak resource referenced by the keycloak id and if it exists set it as the owner reference https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ - It should set the finalizer as org.aerogear.keycloakoperator - it should authenticate using the credentials in the secret referenced by the keycloak resource under the {code}adminCredentials{code} property - it should create then reconcile the realms by listing all realms from keycloak. If a realm and mark is present in the KeycloakRealm keycloak resource as complete
*Deletion*
When but not present in the resource is deleted keycloak server , we it should delete create the realm - If a realm is present in the keycloak referenced and then remove server but not present in the finalizer reference resource it should delete the realm from keycloak |
|