if this is a shared service, deconfigure keycloak, and delete the resources in the local namespace This means removing - the configmap in the target namespace - secret in the target namespace - removing the public client created during the provision? - remove the realm in shared namespace ?
*We should not remove the realm as we will not know if it is an active realm or being used by another client.*
Possibly, if we stored information in the encode binding during the provision that we created the realm, then we could check for the number of clients, if it is 0 we could then remove the realm. However I think It is safer to not remove the realm after it has been created given the possibility of it being shared. |
|