Documentation ¶
Index ¶
- Constants
- func NewPodRootfsPressureEvictionPlugin(_ *client.GenericClientSet, _ events.EventRecorder, ...) plugin.EvictionPlugin
- type PodRootfsPressureEvictionPlugin
- func (r *PodRootfsPressureEvictionPlugin) GetEvictPods(_ context.Context, request *pluginapi.GetEvictPodsRequest) (*pluginapi.GetEvictPodsResponse, error)
- func (r *PodRootfsPressureEvictionPlugin) GetTopEvictionPods(_ context.Context, request *pluginapi.GetTopEvictionPodsRequest) (*pluginapi.GetTopEvictionPodsResponse, error)
- func (r *PodRootfsPressureEvictionPlugin) Name() string
- func (r *PodRootfsPressureEvictionPlugin) Start()
- func (r *PodRootfsPressureEvictionPlugin) ThresholdMet(_ context.Context) (*pluginapi.ThresholdMetResponse, error)
Constants ¶
View Source
const ( EvictionPluginNamePodRootfsPressure = "rootfs-pressure-eviction-plugin" EvictionScopeSystemRootfs = "SystemRootfs" )
Variables ¶
This section is empty.
Functions ¶
func NewPodRootfsPressureEvictionPlugin ¶
func NewPodRootfsPressureEvictionPlugin(_ *client.GenericClientSet, _ events.EventRecorder, metaServer *metaserver.MetaServer, emitter metrics.MetricEmitter, conf *config.Configuration, ) plugin.EvictionPlugin
Types ¶
type PodRootfsPressureEvictionPlugin ¶
type PodRootfsPressureEvictionPlugin struct { *process.StopControl sync.RWMutex // contains filtered or unexported fields }
func (*PodRootfsPressureEvictionPlugin) GetEvictPods ¶
func (r *PodRootfsPressureEvictionPlugin) GetEvictPods(_ context.Context, request *pluginapi.GetEvictPodsRequest) (*pluginapi.GetEvictPodsResponse, error)
func (*PodRootfsPressureEvictionPlugin) GetTopEvictionPods ¶
func (r *PodRootfsPressureEvictionPlugin) GetTopEvictionPods(_ context.Context, request *pluginapi.GetTopEvictionPodsRequest) (*pluginapi.GetTopEvictionPodsResponse, error)
func (*PodRootfsPressureEvictionPlugin) Name ¶
func (r *PodRootfsPressureEvictionPlugin) Name() string
func (*PodRootfsPressureEvictionPlugin) Start ¶
func (r *PodRootfsPressureEvictionPlugin) Start()
func (*PodRootfsPressureEvictionPlugin) ThresholdMet ¶
func (r *PodRootfsPressureEvictionPlugin) ThresholdMet(_ context.Context) (*pluginapi.ThresholdMetResponse, error)
Click to show internal directories.
Click to hide internal directories.