From 9d18e900c8232e5441b04c1567854e8e49f6a0f2 Mon Sep 17 00:00:00 2001 From: yunwang0911 <112385953+yunwang0911@users.noreply.github.com> Date: Tue, 29 Oct 2024 11:39:32 +0800 Subject: [PATCH] Update pkg/kubelet/status/state/checkpoint.go Co-authored-by: Tim Allclair --- pkg/kubelet/status/state/checkpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/status/state/checkpoint.go b/pkg/kubelet/status/state/checkpoint.go index 940a70d3e7f..2205953cc8d 100644 --- a/pkg/kubelet/status/state/checkpoint.go +++ b/pkg/kubelet/status/state/checkpoint.go @@ -43,7 +43,7 @@ func NewCheckpoint(allocations *PodResourceAllocationInfo) (*Checkpoint, error) serializedAllocations, err := json.Marshal(allocations) if err != nil { - return nil, err + return nil, fmt.Errorf("failed to serialize allocations for checkpointing: %w", err) } cp := &Checkpoint{