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:32 +08:00 committed by GitHub
parent b67a5623b1
commit 9d18e900c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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