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

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

View File

@ -98,8 +98,7 @@ func (sc *stateCheckpoint) storeState() error {
ResizeStatusEntries: podResizeStatus,
})
if err != nil {
klog.ErrorS(err, "Failed to create checkpoint")
return err
return fmt.Errorf("failed to create checkpoint: %w", err)
}
err = sc.checkpointManager.CreateCheckpoint(sc.checkpointName, checkpoint)
if err != nil {