*What*
The operator will need to watch for SharedService custom resources when it sees one it should do the following things.
- check the {code} spec.serviceType {code} is keycloak, if it is then set the finalizer https://docs.openshift.com/container-platform/3.7/admin_guide/custom_resource_definitions.html#admin-guide-custom-resource-finalizers and mark the status as accepted Finaliser is a metadata label that is used to indicate to k8s not to remove the resource until the finaliser label has been removed. This ensure the operator gets to see the deleted resource and do any clean up before k8s actually deletes the resource - next it creates a keycloak custom resource https://github.com/aerogear/keycloak-operator/blob/master/deploy/examples/keycloak_min.json upto the minInstances value using the params defined in the SharedService resource (likely not much needed here that it is type keycloak may be enough currently) As part of that creation the operator should fill in the {code}Status.SharedConifg{code} with the maxSlices and set the currentSlices to 0 |
|