Skip to content

Commit 1581055

Browse files
committed
fix golint failures of pkg/kubelet/pod
1 parent 20b76a2 commit 1581055

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

hack/.golint_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ pkg/kubelet/events
185185
pkg/kubelet/lifecycle
186186
pkg/kubelet/metrics
187187
pkg/kubelet/oom
188-
pkg/kubelet/pod
189188
pkg/kubelet/pod/testing
190189
pkg/kubelet/preemption
191190
pkg/kubelet/prober

pkg/kubelet/pod/mirror_client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,13 @@ func (mc *basicMirrorClient) DeleteMirrorPod(podFullName string) error {
9090
return nil
9191
}
9292

93+
// IsStaticPod returns true if the pod is a static pod.
9394
func IsStaticPod(pod *v1.Pod) bool {
9495
source, err := kubetypes.GetPodSource(pod)
9596
return err == nil && source != kubetypes.ApiserverSource
9697
}
9798

99+
// IsMirrorPod returns true if the pod is a mirror pod.
98100
func IsMirrorPod(pod *v1.Pod) bool {
99101
_, ok := pod.Annotations[kubetypes.ConfigMirrorAnnotationKey]
100102
return ok

0 commit comments

Comments
 (0)