helmrepo: only log recovery msg on actual recovery

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals 2023-02-22 22:44:12 +01:00
parent c0a1099719
commit 76c4bb78bd
1 changed files with 1 additions and 1 deletions

View File

@ -318,11 +318,11 @@ func (r *HelmRepositoryReconciler) notify(ctx context.Context, oldObj, newObj *s
if sreconcile.FailureRecovery(oldObj, newObj, helmRepositoryFailConditions) { if sreconcile.FailureRecovery(oldObj, newObj, helmRepositoryFailConditions) {
r.AnnotatedEventf(newObj, annotations, corev1.EventTypeNormal, r.AnnotatedEventf(newObj, annotations, corev1.EventTypeNormal,
meta.SucceededReason, message) meta.SucceededReason, message)
}
ctrl.LoggerFrom(ctx).Info(message) ctrl.LoggerFrom(ctx).Info(message)
} }
} }
} }
}
// reconcileStorage ensures the current state of the storage matches the // reconcileStorage ensures the current state of the storage matches the
// desired and previously observed state. // desired and previously observed state.