Currently it is hard to debug a failed reconciliation. Yes we do have status.lastExecutionOutput however the output is not helpful in all cases. If requests fail it usually only prints the status code but not which request failed.
Proposal
This PR adds various improvements regarding debugging and visibility during reconciliation.
New features
Implements tracing support
Add .status.lastReconcileDuration to KeycloakRealm, its a duration of how long the entire reconcile took for a given realm.
Add .status.lastFailedRequests to KeycloakRealm, contains a list of failed requests from the last reconcile which includes: verb, URI, status code and response body (size limited).
Add .status.subResourceCatalog to KeycloakRealm, contains a list of resources associated with the realm. This will contain KeycloakClients and KeycloakUsers.
All these feature are implemented using a transparent proxy which captures the communication as well as adds tracing and
greps the necessary information.
Removals
Removes all unsupported api fields (leftovers from the transition of the keycloak-operator resources)
Current situation
Currently it is hard to debug a failed reconciliation. Yes we do have
status.lastExecutionOutput
however the output is not helpful in all cases. If requests fail it usually only prints the status code but not which request failed.Proposal
This PR adds various improvements regarding debugging and visibility during reconciliation.
New features
.status.lastReconcileDuration
toKeycloakRealm
, its a duration of how long the entire reconcile took for a given realm..status.lastFailedRequests
toKeycloakRealm
, contains a list of failed requests from the last reconcile which includes: verb, URI, status code and response body (size limited)..status.subResourceCatalog
toKeycloakRealm
, contains a list of resources associated with the realm. This will contain KeycloakClients and KeycloakUsers.All these feature are implemented using a transparent proxy which captures the communication as well as adds tracing and greps the necessary information.
Removals
Fixes