Search in sources :

Example 1 with KeycloakStatus

use of org.keycloak.operator.v2alpha1.crds.KeycloakStatus in project keycloak by keycloak.

the class KeycloakController method updateErrorStatus.

@Override
public Optional<Keycloak> updateErrorStatus(Keycloak kc, RetryInfo retryInfo, RuntimeException e) {
    Log.error("--- Error reconciling", e);
    KeycloakStatus status = new KeycloakStatusBuilder().addErrorMessage("Error performing operations:\n" + e.getMessage()).build();
    kc.setStatus(status);
    return Optional.of(kc);
}
Also used : KeycloakStatusBuilder(org.keycloak.operator.v2alpha1.crds.KeycloakStatusBuilder) KeycloakStatus(org.keycloak.operator.v2alpha1.crds.KeycloakStatus)

Aggregations

KeycloakStatus (org.keycloak.operator.v2alpha1.crds.KeycloakStatus)1 KeycloakStatusBuilder (org.keycloak.operator.v2alpha1.crds.KeycloakStatusBuilder)1