mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Update pkg/kubelet/status/state/checkpoint.go
Co-authored-by: Tim Allclair <timallclair@gmail.com>
This commit is contained in:
parent
cf8cdaf5a7
commit
b67a5623b1
@ -39,9 +39,9 @@ type Checkpoint struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NewCheckpoint creates a new checkpoint from a list of claim info states
|
// 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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user