Skip to content

Commit 6ed5189

Browse files
committed
Remove usage of %w formatter from non ErrorF call
1 parent 598c51c commit 6ed5189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/rotation/reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ func (r *Reconciler) reconcile(ctx context.Context, spcps *secretsstorev1.Secret
405405
gid, err = strconv.ParseInt(spcps.Status.FSGroup, 10, 64)
406406
if err != nil {
407407
errorReason = internalerrors.FailedToParseFSGroup
408-
errStr := fmt.Sprintf("failed to rotate objects for pod %s/%s, invalid FSGroup:%s, err: %w ", spcps.Namespace, spcps.Status.PodName, spcps.Status.FSGroup, err)
408+
errStr := fmt.Sprintf("failed to rotate objects for pod %s/%s, invalid FSGroup:%s, err: %v ", spcps.Namespace, spcps.Status.PodName, spcps.Status.FSGroup, err)
409409
r.generateEvent(pod, corev1.EventTypeWarning, mountRotationFailedReason, errStr)
410410
return fmt.Errorf("%s", errStr)
411411
}

0 commit comments

Comments
 (0)