Skip to content

Commit 5b43333

Browse files
authored
Merge pull request kubernetes#76884 from SataQiu/fix-golint-pkg/kubelet/pod
Fix golint failures of pkg/kubelet/pod
2 parents f493761 + 1581055 commit 5b43333

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
@@ -184,7 +184,6 @@ pkg/kubelet/events
184184
pkg/kubelet/lifecycle
185185
pkg/kubelet/metrics
186186
pkg/kubelet/oom
187-
pkg/kubelet/pod
188187
pkg/kubelet/pod/testing
189188
pkg/kubelet/preemption
190189
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)