fix golint failures of pkg/kubelet/checkpoint

This commit is contained in:
SataQiu 2019-04-19 18:27:32 +08:00
parent fc545587e4
commit 0e1956b762
2 changed files with 2 additions and 1 deletions

View File

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

View File

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