informers

package
v0.0.0-...-3cf0e9c Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFlags

func InitFlags(flagset *flag.FlagSet)

InitFlags initializes flags for the Kubernetes client.

func NewClientSet

func NewClientSet(ctx context.Context, kubecontextName string) (*kubernetes.Clientset, error)

Types

type Config

type Config struct {
	Namespace string   `yaml:"namespace"`
	Services  []string `yaml:"services"`
}

Config represents a collection of Kubernetes services in a namespace.

type Kubecontext

type Kubecontext struct {
	Context   string   `yaml:"context"`
	Informers []Config `yaml:"informers"`
}

Kubecontext represents a kubeconfig context, containing a list of `informer.Config`s.

type Manager

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

Manager manages a collection of informers.

func NewManager

func NewManager(ctx context.Context, kubecontextName string, xdsCache *xds.SnapshotCache) (*Manager, error)

NewManager creates an instance that manages a collection of informers for one kubecontext.

func (*Manager) AddEndpointSliceInformer

func (m *Manager) AddEndpointSliceInformer(ctx context.Context, logger logr.Logger, config Config) error

Jump to

Keyboard shortcuts

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