mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 06:32:32 +00:00
Merge pull request #76806 from SataQiu/fix-kubelet-golint-20190419
Fix golint failures of pkg/kubelet/checkpoint
This commit is contained in:
@@ -166,7 +166,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
|
||||
}
|
||||
|
Reference in New Issue
Block a user