metamanager

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricReconcileFail = "metamanager_reconcile_fail"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedPodListFunc

type CachedPodListFunc func() sets.String

type Manager

type Manager struct {
	*metaserver.MetaServer
	// contains filtered or unexported fields
}

func NewManager

func NewManager(
	emitter metrics.MetricEmitter,
	cachedPods CachedPodListFunc,
	metaServer *metaserver.MetaServer,
) *Manager

func (*Manager) GetPods added in v0.4.2

func (m *Manager) GetPods() []*v1.Pod

func (*Manager) ReconcilePods added in v0.4.2

func (m *Manager) ReconcilePods() ([]string, map[string]struct{}, error)

ReconcilePods returns a list of new pods and pod should be deleted

func (*Manager) RegistPodAddedFunc

func (m *Manager) RegistPodAddedFunc(podAddedFunc PodAddedFunc)

func (*Manager) RegistPodDeletedFunc

func (m *Manager) RegistPodDeletedFunc(podDeletedFunc PodDeletedFunc)

func (*Manager) Run

func (m *Manager) Run(ctx context.Context, reconcilePeriod time.Duration)

type PodAddedFunc

type PodAddedFunc func(podUID string)

type PodDeletedFunc

type PodDeletedFunc func(podUID string)

Jump to

Keyboard shortcuts

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