Skip to content

Commit 05812ea

Browse files
committed
Fix odd number of key-value pairs in info log about pvc size increase
1 parent 983d167 commit 05812ea

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/controller/operator/factory/reconcile/statefulset_pvc_expand.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ func mayGrow(ctx context.Context, pvc *corev1.PersistentVolumeClaim, newSize, ex
222222
// do no return error
223223
// probably, user updated pvc manually
224224
// without applying this changes to the configuration.
225-
logger.WithContext(ctx).Info(fmt.Sprintf("cannot decrease PVC=%s size from=%s to=%s", pvc.Name, newSize.String(), existSize.String()),
226-
"cannot decrease PVC size, please check VolumeClaimTemplate configuration")
225+
logger.WithContext(ctx).Info("cannot decrease PVC size, please check VolumeClaimTemplate configuration", "pvc", pvc.Name, "from", existSize.String(), "to", newSize.String())
227226
return false
228227
default: // increase
229228
return true

0 commit comments

Comments
 (0)