*What*
The operator will need to watch for SharedService custom resources when it sees one it should do the following things.
- check the spec.type is keycloak, if it is then set the finalizer 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 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) - We should also create a SharedServiceInstance resource with the maxSlices and currentSlices. Once created we should add a reference to this resource to the keycloak resource (the status seems like an ok place to put this) |
|