Documentation
¶
Index ¶
- Constants
- func GetContainer(pod *core.Pod, containerName string) *core.Container
- type PodOOMRecorderController
- type ResourceRecommendController
- func (rrc *ResourceRecommendController) CancelTasks(namespacedName k8stypes.NamespacedName) *errortypes.CustomError
- func (rrc *ResourceRecommendController) ProcessNextResourceRecommend() bool
- func (rrc *ResourceRecommendController) RegisterTasks(recommendation recommendationtypes.Recommendation) *errortypes.CustomError
- func (rrc *ResourceRecommendController) Run()
- func (rrc *ResourceRecommendController) UpdateRecommendationStatus(namespacedName k8stypes.NamespacedName, ...) error
Constants ¶
View Source
const OOMRecorderControllerName = "oomRecorder"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PodOOMRecorderController ¶
type PodOOMRecorderController struct {
Recorder *oom.PodOOMRecorder
// contains filtered or unexported fields
}
PodOOMRecorderController controls pod oom events recorder
func NewPodOOMRecorderController ¶ added in v0.5.12
func NewPodOOMRecorderController(ctx context.Context, controlCtx *katalystbase.GenericContext, genericConf *generic.GenericConfiguration, _ *controller.GenericControllerConfiguration, recConf *controller.ResourceRecommenderConfig, ) (*PodOOMRecorderController, error)
NewPodOOMRecorderController
func (*PodOOMRecorderController) ProcessContainer ¶ added in v0.5.12
func (oc *PodOOMRecorderController) ProcessContainer(pod *core.Pod)
ProcessContainer checks for OOM kills in pod containers and enqueues them for processing.
func (*PodOOMRecorderController) Run ¶ added in v0.5.12
func (oc *PodOOMRecorderController) Run()
type ResourceRecommendController ¶
type ResourceRecommendController struct {
OOMRecorder *oom.PodOOMRecorder
ProcessorManager *processormanager.Manager
RecommenderManager *recommendermanager.Manager
// contains filtered or unexported fields
}
func NewResourceRecommendController ¶ added in v0.5.12
func NewResourceRecommendController(ctx context.Context, controlCtx *katalystbase.GenericContext, genericConf *generic.GenericConfiguration, _ *controller.GenericControllerConfiguration, recConf *controller.ResourceRecommenderConfig, OOMRecorder *oom.PodOOMRecorder, ) (*ResourceRecommendController, error)
func (*ResourceRecommendController) CancelTasks ¶
func (rrc *ResourceRecommendController) CancelTasks(namespacedName k8stypes.NamespacedName) *errortypes.CustomError
CancelTasks Cancel all process task
func (*ResourceRecommendController) ProcessNextResourceRecommend ¶ added in v0.5.12
func (rrc *ResourceRecommendController) ProcessNextResourceRecommend() bool
func (*ResourceRecommendController) RegisterTasks ¶
func (rrc *ResourceRecommendController) RegisterTasks(recommendation recommendationtypes.Recommendation) *errortypes.CustomError
func (*ResourceRecommendController) Run ¶ added in v0.5.12
func (rrc *ResourceRecommendController) Run()
func (*ResourceRecommendController) UpdateRecommendationStatus ¶
func (rrc *ResourceRecommendController) UpdateRecommendationStatus(namespacedName k8stypes.NamespacedName, recommendation *recommendationtypes.Recommendation) error
Click to show internal directories.
Click to hide internal directories.