nrtupdater

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

View Source
const (
	RTEUpdatePeriodic = "periodic"
	RTEUpdateReactive = "reactive"
)

Variables

View Source
var NotConfigured = errors.New("unconfigured feature")

Functions

This section is empty.

Types

type Args

type Args struct {
	NoPublish bool
	Oneshot   bool
	Hostname  string
}

Command line arguments

type CachedNodeGetter added in v0.14.0

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

func NewCachedNodeGetter added in v0.14.0

func NewCachedNodeGetter(k8sInterface kubernetes.Interface, ctx context.Context) (*CachedNodeGetter, error)

func (*CachedNodeGetter) Get added in v0.14.0

func (ng *CachedNodeGetter) Get(ctx context.Context, nodeName string, _ metav1.GetOptions) (*corev1.Node, error)

type ConnectionError added in v0.14.0

type ConnectionError struct {
	Err error
}

func (ConnectionError) Error added in v0.14.0

func (err ConnectionError) Error() string

func (ConnectionError) Unwrap added in v0.14.0

func (err ConnectionError) Unwrap() error

type DisabledNodeGetter added in v0.14.0

type DisabledNodeGetter struct {
}

func (*DisabledNodeGetter) Get added in v0.14.0

func (ng *DisabledNodeGetter) Get(ctx context.Context, nodeName string, opts metav1.GetOptions) (*corev1.Node, error)

type MonitorInfo

type MonitorInfo struct {
	Timer       bool
	Zones       v1alpha2.ZoneList
	Attributes  v1alpha2.AttributeList
	Annotations map[string]string
}

func (MonitorInfo) UpdateReason added in v0.1.1

func (mi MonitorInfo) UpdateReason() string

type NRTUpdater

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

func NewNRTUpdater

func NewNRTUpdater(nodeGetter NodeGetter, args Args, tmconf TMConfig) *NRTUpdater

func (*NRTUpdater) Run

func (te *NRTUpdater) Run(infoChannel <-chan MonitorInfo, condChan chan v1.PodCondition)

func (*NRTUpdater) Stop added in v0.4.0

func (te *NRTUpdater) Stop()

func (*NRTUpdater) Update

func (te *NRTUpdater) Update(info MonitorInfo) error

func (*NRTUpdater) UpdateWithClient added in v0.4.2

func (te *NRTUpdater) UpdateWithClient(cli topologyclientset.Interface, info MonitorInfo) error

type NodeGetter added in v0.14.0

type NodeGetter interface {
	Get(ctx context.Context, nodeName string, opts metav1.GetOptions) (*corev1.Node, error)
}

type NotFound added in v0.14.0

type NotFound struct {
	NodeName string
}

func (NotFound) Error added in v0.14.0

func (err NotFound) Error() string

type TMConfig added in v0.10.0

type TMConfig struct {
	Policy string
	Scope  string
}

func (TMConfig) IsValid added in v0.10.0

func (conf TMConfig) IsValid() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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