Update pkg/kubelet/status/state/checkpoint.go

Co-authored-by: Tim Allclair <timallclair@gmail.com>
This commit is contained in:
yunwang0911 2024-10-29 11:39:18 +08:00 committed by GitHub
parent cf8cdaf5a7
commit b67a5623b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}