options

package
v0.3.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetFlag

func SetFlag(set *sets.Set[string]) pflag.Value

SetFlag wraps a given set so it can be used as a CLI flag.

Types

type ControllerRunOptions

type ControllerRunOptions struct {
	MetricsAddr             string
	HealthAddr              string
	EnableLeaderElection    bool
	LeaderElectionWorkspace string
	LeaderElectionNamespace string
	WorkerCount             int

	EnabledControllers  sets.Set[string]
	DisabledControllers sets.Set[string]
}

func NewDefaultOptions

func NewDefaultOptions(portIndex int) ControllerRunOptions

portIndex is a unique number per cmd/, in order for them to be able to run in parallel during development without having ports clash.

func (*ControllerRunOptions) AddPFlags

func (opts *ControllerRunOptions) AddPFlags(flags *pflag.FlagSet)

func (*ControllerRunOptions) EffectiveControllers

func (opts *ControllerRunOptions) EffectiveControllers(allControllerNames sets.Set[string]) sets.Set[string]

Jump to

Keyboard shortcuts

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