Documentation
¶
Overview ¶
Package lifecycle is the package that is responsible to maintain the lifecycle of self-generated CRs including CNC/CNM/CNR and so on. Lifecycle will also mark labels and annotations to those CR if needed.
Index ¶
Constants ¶
View Source
const (
EvictionControllerName = "eviction"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CNCLifecycle ¶
type CNCLifecycle struct {
// contains filtered or unexported fields
}
func NewCNCLifecycle ¶
func NewCNCLifecycle(ctx context.Context, nodeInformer coreinformers.NodeInformer, cncInformer configinformers.CustomNodeConfigInformer, client *client.GenericClientSet, _ *controller.LifeCycleConfig, generalConf *controller.GenericControllerConfiguration, metricsEmitter metrics.MetricEmitter) (*CNCLifecycle, error)
func (*CNCLifecycle) Run ¶
func (cl *CNCLifecycle) Run()
type CNRLifecycle ¶
type CNRLifecycle struct {
// contains filtered or unexported fields
}
func NewCNRLifecycle ¶
func NewCNRLifecycle(ctx context.Context, nodeInformer coreinformers.NodeInformer, cnrInformer informers.CustomNodeResourceInformer, client *client.GenericClientSet, generalConf *controller.GenericControllerConfiguration, metricsEmitter metrics.MetricEmitter) (*CNRLifecycle, error)
func (*CNRLifecycle) Run ¶
func (cl *CNRLifecycle) Run()
type EvictionController ¶
type EvictionController struct {
// contains filtered or unexported fields
}
func NewEvictionController ¶
func NewEvictionController(ctx context.Context, nodeInformer coreinformers.NodeInformer, podInformer coreinformers.PodInformer, cnrInformer informers.CustomNodeResourceInformer, client *client.GenericClientSet, conf *controller.LifeCycleConfig, generalConf *controller.GenericControllerConfiguration, metricsEmitter metrics.MetricEmitter) (*EvictionController, error)
func (*EvictionController) Run ¶
func (ec *EvictionController) Run()
Click to show internal directories.
Click to hide internal directories.