Skip to content

Commit

Permalink
mod: set kmp error for certs and keys
Browse files Browse the repository at this point in the history
  • Loading branch information
duffney committed Sep 11, 2024
1 parent c9a5a88 commit 97165c6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ func (r *KeyManagementProviderReconciler) ReconcileWithType(ctx context.Context,
refresher, err := refresh.CreateRefresherFromConfig(refresherConfig)
if err != nil {
kmpErr := re.ErrorCodeKeyManagementProviderFailure.WithError(err).WithDetail("Failed to create refresher from config")
kmp.SetCertificateError(resource, kmpErr)
kmp.SetKeyError(resource, kmpErr)
writeKMProviderStatus(ctx, r, &keyManagementProvider, logger, false, &kmpErr, lastFetchedTime, nil)
return ctrl.Result{}, kmpErr
}
Expand Down

0 comments on commit 97165c6

Please sign in to comment.