File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,6 @@ pkg/kubelet/events
185
185
pkg/kubelet/lifecycle
186
186
pkg/kubelet/metrics
187
187
pkg/kubelet/oom
188
- pkg/kubelet/pod
189
188
pkg/kubelet/pod/testing
190
189
pkg/kubelet/preemption
191
190
pkg/kubelet/prober
Original file line number Diff line number Diff line change @@ -90,11 +90,13 @@ func (mc *basicMirrorClient) DeleteMirrorPod(podFullName string) error {
90
90
return nil
91
91
}
92
92
93
+ // IsStaticPod returns true if the pod is a static pod.
93
94
func IsStaticPod (pod * v1.Pod ) bool {
94
95
source , err := kubetypes .GetPodSource (pod )
95
96
return err == nil && source != kubetypes .ApiserverSource
96
97
}
97
98
99
+ // IsMirrorPod returns true if the pod is a mirror pod.
98
100
func IsMirrorPod (pod * v1.Pod ) bool {
99
101
_ , ok := pod .Annotations [kubetypes .ConfigMirrorAnnotationKey ]
100
102
return ok
You can’t perform that action at this time.
0 commit comments