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 }