controller

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace               string
	Client                  *rest.Config
	EnableLeaderElection    bool
	LeaderElectionNamespace string
	MetricsAddr             netip.AddrPort
	ProbeAddr               netip.AddrPort
}

func NewConfig

func NewConfig(opts ...Option) *Config

func (*Config) Start

func (c *Config) Start(ctx context.Context, log logr.Logger) error

type Option

type Option func(*Config)

func WithClient

func WithClient(client *rest.Config) Option

func WithEnableLeaderElection

func WithEnableLeaderElection(enableLeaderElection bool) Option

func WithLeaderElectionNamespace

func WithLeaderElectionNamespace(namespace string) Option

func WithMetricsAddr

func WithMetricsAddr(addrPort netip.AddrPort) Option

func WithNamespace

func WithNamespace(namespace string) Option

func WithProbeAddr

func WithProbeAddr(addrPort netip.AddrPort) Option

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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