Keyfactor/ejbca-cert-manager-issuer

Add statement to log when reconciler changes the status of Issuer or ClusterIssuer resources

Closed this issue · 0 comments

Currently, there is no insight given to users when an Issuer or ClusterIssuer changes status. Add a log statement that notifies the user of changed states:

if ready.Status != conditionStatus {
    log.Info(fmt.Sprintf("Found status change for %s %q: %q -> %q; %q", kind, name, ready.Status, conditionStatus, message))
    
    ready.Status = conditionStatus
    now := metav1.Now()
    ready.LastTransitionTime = &now
}
ready.Reason = reason
ready.Message = message