mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
move log restored state to better location.
This commit is contained in:
parent
fd35f652d4
commit
f7df3ec07f
@ -55,8 +55,6 @@ func NewStateCheckpoint(stateDir, checkpointName string) (State, error) {
|
|||||||
checkpointManager: checkpointManager,
|
checkpointManager: checkpointManager,
|
||||||
checkpointName: checkpointName,
|
checkpointName: checkpointName,
|
||||||
}
|
}
|
||||||
|
|
||||||
klog.V(2).InfoS("State checkpoint: restored pod resource allocation state from checkpoint")
|
|
||||||
return stateCheckpoint, nil
|
return stateCheckpoint, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,6 +71,7 @@ func restoreState(checkpointManager checkpointmanager.CheckpointManager, checkpo
|
|||||||
}
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
klog.V(2).InfoS("State checkpoint: restored pod resource allocation state from checkpoint")
|
||||||
praInfo, err := checkpoint.GetPodResourceAllocationInfo()
|
praInfo, err := checkpoint.GetPodResourceAllocationInfo()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to get pod resource allocation info: %w", err)
|
return nil, fmt.Errorf("failed to get pod resource allocation info: %w", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user