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"
)
View Source
const (
SoftEvictorName = "SoftEviction"
)
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)
func NewSoftEvictor ¶ added in v1.2.0
func NewSoftEvictor(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
type SoftEvictor ¶ added in v1.2.0
type SoftEvictor struct {
// contains filtered or unexported fields
}
func (*SoftEvictor) Evict ¶ added in v1.2.0
func (e *SoftEvictor) Evict(ctx context.Context, job *sev1alpha1.PodMigrationJob, pod *corev1.Pod) error
Click to show internal directories.
Click to hide internal directories.