mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
fix golint failures of pkg/kubelet/checkpoint
This commit is contained in:
parent
fc545587e4
commit
0e1956b762
@ -169,7 +169,6 @@ pkg/kubelet/apis/config/v1beta1
|
||||
pkg/kubelet/apis/deviceplugin/v1beta1
|
||||
pkg/kubelet/cadvisor
|
||||
pkg/kubelet/cadvisor/testing
|
||||
pkg/kubelet/checkpoint
|
||||
pkg/kubelet/checkpointmanager/checksum
|
||||
pkg/kubelet/checkpointmanager/testing/example_checkpoint_formats/v1
|
||||
pkg/kubelet/client
|
||||
|
@ -34,6 +34,7 @@ const (
|
||||
podPrefix = "Pod"
|
||||
)
|
||||
|
||||
// PodCheckpoint defines the operations to retrieve pod
|
||||
type PodCheckpoint interface {
|
||||
checkpointmanager.Checkpoint
|
||||
GetPod() *v1.Pod
|
||||
@ -66,6 +67,7 @@ func (cp *Data) VerifyChecksum() error {
|
||||
return cp.Checksum.Verify(*cp.Pod)
|
||||
}
|
||||
|
||||
// GetPod retrieves the pod from the checkpoint
|
||||
func (cp *Data) GetPod() *v1.Pod {
|
||||
return cp.Pod
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user