Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PodProvider ¶
type PodProvider struct {
// contains filtered or unexported fields
}
PodProvider is used to get pods and evicted pods, just for testing.
func NewPodProvider ¶
func NewPodProvider(pods ...*v1.Pod) *PodProvider
func (*PodProvider) Evict ¶
func (m *PodProvider) Evict(ctx context.Context, pod *v1.Pod, eventRecorder record.EventRecorder, gracePeriodSeconds int64, evictMsg string) bool
func (*PodProvider) GetEvictedPods ¶
func (m *PodProvider) GetEvictedPods() []*v1.Pod
func (*PodProvider) GetPodsFunc ¶
func (m *PodProvider) GetPodsFunc() ([]*v1.Pod, error)
Click to show internal directories.
Click to hide internal directories.