Documentation ¶
Index ¶
Constants ¶
View Source
const ( LabelEvictPolicy = "koordinator.sh/evict-policy" AnnotationEvictReason = "koordinator.sh/evict-reason" AnnotationEvictTrigger = "koordinator.sh/evict-trigger" )
View Source
const (
DeleteEvictorName = "Delete"
)
View Source
const (
NativeEvictorName = "Eviction"
)
Variables ¶
View Source
var (
ErrTooManyEvictions = errors.New("TooManyEvictions")
)
Functions ¶
func GetEvictionTriggerAndReason ¶ added in v1.1.1
func RegisterEvictor ¶
Types ¶
type DeleteEvictor ¶
type DeleteEvictor struct {
// contains filtered or unexported fields
}
func (*DeleteEvictor) Evict ¶
func (e *DeleteEvictor) Evict(ctx context.Context, job *sev1alpha1.PodMigrationJob, pod *corev1.Pod) error
type Interface ¶
type Interface interface {
Evict(ctx context.Context, job *sev1alpha1.PodMigrationJob, pod *corev1.Pod) error
}
func NewDeleteEvictor ¶
func NewDeleteEvictor(client kubernetes.Interface) (Interface, error)
func NewNativeEvictor ¶
func NewNativeEvictor(client kubernetes.Interface) (Interface, error)
type NativeEvictor ¶
type NativeEvictor struct {
// contains filtered or unexported fields
}
func (*NativeEvictor) Evict ¶
func (e *NativeEvictor) Evict(ctx context.Context, job *sev1alpha1.PodMigrationJob, pod *corev1.Pod) error
Click to show internal directories.
Click to hide internal directories.