Documentation ¶
Overview ¶
Package config contains the operator's runtime configuration.
Index ¶
- type Config
- type Option
- func WithAutoDetect(a autodetect.AutoDetect) Option
- func WithAutoDetectFrequency(t time.Duration) Option
- func WithCollectorConfigMapEntry(s string) Option
- func WithCollectorImage(s string) Option
- func WithLogger(logger logr.Logger) Option
- func WithOnChange(f func() error) Option
- func WithPlatform(plt platform.Platform) Option
- func WithVersion(v version.Version) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Registers a callback, to be called once a configuration change happens OnChange func() error // contains filtered or unexported fields }
Config holds the static configuration for this operator
func (*Config) AutoDetect ¶
AutoDetect attempts to automatically detect relevant information for this operator.
func (*Config) CollectorConfigMapEntry ¶
CollectorConfigMapEntry represents the configuration file name for the collector. Immutable.
func (*Config) CollectorImage ¶
CollectorImage represents the flag to override the OpenTelemetry Collector container image.
func (*Config) FlagSet ¶
FlagSet binds the flags to the user-modifiable values of the operator's configuration
func (*Config) StartAutoDetect ¶
StartAutoDetect attempts to automatically detect relevant information for this operator. This will block until the first run is executed and will schedule periodic updates.
type Option ¶
type Option func(c *options)
Option represents one specific configuration option
func WithAutoDetect ¶
func WithAutoDetect(a autodetect.AutoDetect) Option