*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) - Once the keycloak resources has been set to complete ( meaning the keycloak instance has been created covered by another issue) the operator will create a ServiceInstance resource with a spec.type of keycloak and set the owner ref and finalizer then set the SharedService resource to status complete |
|