controller

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AgentNodeLabels   string
	AgentNodeTaint    string
	AgentPodNamespace string
	AgentPodLabels    string
	ResyncInterval    time.Duration
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(client *kubernetes.Clientset, cfg Config) *Manager

func (*Manager) Run

func (mgr *Manager) Run(ctx context.Context) error

type QueueEventHandler added in v0.2.0

type QueueEventHandler struct {
	workqueue.Interface
}

func NewQueueEventHandler added in v0.2.0

func NewQueueEventHandler() QueueEventHandler

func (*QueueEventHandler) GetEventHandler added in v0.2.0

func (qeh *QueueEventHandler) GetEventHandler() cache.ResourceEventHandler

func (*QueueEventHandler) ProcessNextKey added in v0.2.0

func (qeh *QueueEventHandler) ProcessNextKey(ctx context.Context, process func(context.Context, interface{}) bool) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL