Documentation ¶
Overview ¶
Package plugin is the package that defines the eviction strategy, and those strategies must implement EvictPlugin interface, supporting both embedded plugin and external registered plugin.
Index ¶
- type DummyEvictionPlugin
- func (_ DummyEvictionPlugin) GetEvictPods(_ context.Context, _ *pluginapi.GetEvictPodsRequest) (*pluginapi.GetEvictPodsResponse, error)
- func (_ DummyEvictionPlugin) GetTopEvictionPods(_ context.Context, _ *pluginapi.GetTopEvictionPodsRequest) (*pluginapi.GetTopEvictionPodsResponse, error)
- func (_ DummyEvictionPlugin) Name() string
- func (_ DummyEvictionPlugin) Start()
- func (_ DummyEvictionPlugin) ThresholdMet(_ context.Context) (*pluginapi.ThresholdMetResponse, error)
- type EvictionPlugin
- type InitFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyEvictionPlugin ¶
type DummyEvictionPlugin struct {
*util.StopControl
}
func (DummyEvictionPlugin) GetEvictPods ¶
func (_ DummyEvictionPlugin) GetEvictPods(_ context.Context, _ *pluginapi.GetEvictPodsRequest) (*pluginapi.GetEvictPodsResponse, error)
func (DummyEvictionPlugin) GetTopEvictionPods ¶
func (_ DummyEvictionPlugin) GetTopEvictionPods(_ context.Context, _ *pluginapi.GetTopEvictionPodsRequest) (*pluginapi.GetTopEvictionPodsResponse, error)
func (DummyEvictionPlugin) Name ¶
func (_ DummyEvictionPlugin) Name() string
func (DummyEvictionPlugin) Start ¶ added in v0.3.0
func (_ DummyEvictionPlugin) Start()
func (DummyEvictionPlugin) ThresholdMet ¶
func (_ DummyEvictionPlugin) ThresholdMet(_ context.Context) (*pluginapi.ThresholdMetResponse, error)
type EvictionPlugin ¶
type EvictionPlugin interface { Name() string endpointpkg.Endpoint }
EvictionPlugin performs eviction actions based on agent resources.
type InitFunc ¶
type InitFunc func(genericClient *client.GenericClientSet, recorder events.EventRecorder, metaServer *metaserver.MetaServer, emitter metrics.MetricEmitter, conf *config.Configuration) EvictionPlugin
InitFunc is used to initialize a particular innter eviction plugin.
Click to show internal directories.
Click to hide internal directories.