| 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 owner ref and finalizer and mark the status as accepted
Owner ref is a way for other things looking at this resource to know that they should not change it if they are not the owner 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 using the params defined in the SharedService resource (likely not much needed here that it is type keycloak may be enough currently)
- the operator will see the keycloak custom resource and provision the keycloak instance via the catalog into it's own namespace. Marking the status as complete on the keycloak resource once the provision has finished successfully.
- the operator will create a ServiceInstance resource with a spec.type of keycloak and set the owner ref and finalizer
|