From b67a5623b17a44e5ba5d2160ae7e4d18136a003c Mon Sep 17 00:00:00 2001 From: yunwang0911 <112385953+yunwang0911@users.noreply.github.com> Date: Tue, 29 Oct 2024 11:39:18 +0800 Subject: [PATCH] Update pkg/kubelet/status/state/checkpoint.go Co-authored-by: Tim Allclair --- pkg/kubelet/status/state/checkpoint.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/kubelet/status/state/checkpoint.go b/pkg/kubelet/status/state/checkpoint.go index 31b955d7631..940a70d3e7f 100644 --- a/pkg/kubelet/status/state/checkpoint.go +++ b/pkg/kubelet/status/state/checkpoint.go @@ -39,9 +39,9 @@ type Checkpoint struct { } // NewCheckpoint creates a new checkpoint from a list of claim info states -func NewCheckpoint(data *PodResourceAllocationInfo) (*Checkpoint, error) { +func NewCheckpoint(allocations *PodResourceAllocationInfo) (*Checkpoint, error) { - praData, err := json.Marshal(data) + serializedAllocations, err := json.Marshal(allocations) if err != nil { return nil, err }