node_observer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 17 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 {
	GenerateTopologyURL string            `yaml:"generateTopologyUrl"`
	Trigger             Trigger           `yaml:"trigger"`
	Provider            topology.Provider `yaml:"provider"`
	Engine              topology.Engine   `yaml:"engine"`
	Params              map[string]any    `yaml:"params"`
}

func NewConfigFromFile

func NewConfigFromFile(fname string) (*Config, error)

type Controller

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

func NewController

func NewController(ctx context.Context, client kubernetes.Interface, cfg *Config) (*Controller, error)

func (*Controller) Start

func (c *Controller) Start() error

func (*Controller) Stop

func (c *Controller) Stop(err error)

type StatusInformer added in v0.3.0

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

func NewStatusInformer added in v0.3.0

func NewStatusInformer(ctx context.Context, client kubernetes.Interface, trigger *Trigger, reqFunc httpreq.RequestFunc) (*StatusInformer, error)

func (*StatusInformer) Start added in v0.3.0

func (s *StatusInformer) Start() error

func (*StatusInformer) Stop added in v0.3.0

func (s *StatusInformer) Stop(_ error)

type Trigger

type Trigger struct {
	NodeSelector map[string]string     `yaml:"nodeSelector,omitempty"`
	PodSelector  *metav1.LabelSelector `yaml:"podSelector,omitempty"`
}

Jump to

Keyboard shortcuts

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