config

package
v0.95.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package config contains the operator's runtime configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config holds the static configuration for this operator.

func New

func New(opts ...Option) Config

New constructs a new configuration based on the given options.

func (*Config) AutoDetect

func (c *Config) AutoDetect() error

AutoDetect attempts to automatically detect relevant information for this operator.

func (*Config) AutoInstrumentationApacheHttpdImage added in v0.78.0

func (c *Config) AutoInstrumentationApacheHttpdImage() string

AutoInstrumentationApacheHttpdImage returns OpenTelemetry ApacheHttpd auto-instrumentation container image.

func (*Config) AutoInstrumentationDotNetImage added in v0.57.2

func (c *Config) AutoInstrumentationDotNetImage() string

AutoInstrumentationDotNetImage returns OpenTelemetry DotNet auto-instrumentation container image.

func (*Config) AutoInstrumentationGoImage added in v0.77.0

func (c *Config) AutoInstrumentationGoImage() string

AutoInstrumentationGoImage returns OpenTelemetry Go auto-instrumentation container image.

func (*Config) AutoInstrumentationJavaImage added in v0.41.0

func (c *Config) AutoInstrumentationJavaImage() string

AutoInstrumentationJavaImage returns OpenTelemetry Java auto-instrumentation container image.

func (*Config) AutoInstrumentationNginxImage added in v0.86.0

func (c *Config) AutoInstrumentationNginxImage() string

AutoInstrumentationNginxImage returns OpenTelemetry Nginx auto-instrumentation container image.

func (*Config) AutoInstrumentationNodeJSImage added in v0.41.1

func (c *Config) AutoInstrumentationNodeJSImage() string

AutoInstrumentationNodeJSImage returns OpenTelemetry NodeJS auto-instrumentation container image.

func (*Config) AutoInstrumentationPythonImage added in v0.41.1

func (c *Config) AutoInstrumentationPythonImage() string

AutoInstrumentationPythonImage returns OpenTelemetry Python auto-instrumentation container image.

func (*Config) CollectorConfigMapEntry

func (c *Config) CollectorConfigMapEntry() string

CollectorConfigMapEntry represents the configuration file name for the collector. Immutable.

func (*Config) CollectorImage

func (c *Config) CollectorImage() string

CollectorImage represents the flag to override the OpenTelemetry Collector container image.

func (*Config) CreateRBACPermissions added in v0.92.0

func (c *Config) CreateRBACPermissions() bool

CreateRBACPermissions is true when the operator can create RBAC permissions for SAs running a collector instance. Immutable.

func (*Config) EnableApacheHttpdAutoInstrumentation added in v0.95.0

func (c *Config) EnableApacheHttpdAutoInstrumentation() bool

func (*Config) EnableMultiInstrumentation added in v0.95.0

func (c *Config) EnableMultiInstrumentation() bool

EnableMultiInstrumentation is true when the operator supports multi instrumentation.

func (*Config) LabelsFilter added in v0.48.0

func (c *Config) LabelsFilter() []string

LabelsFilter Returns the filters converted to regex strings used to filter out unwanted labels from propagations.

func (*Config) OpenShiftRoutesAvailability added in v0.90.0

func (c *Config) OpenShiftRoutesAvailability() openshift.RoutesAvailability

OpenShiftRoutesAvailability represents the availability of the OpenShift Routes API.

func (*Config) OperatorOpAMPBridgeConfigMapEntry added in v0.88.0

func (c *Config) OperatorOpAMPBridgeConfigMapEntry() string

OperatorOpAMPBridgeImageConfigMapEntry represents the configuration file name for the OpAMPBridge. Immutable.

func (*Config) OperatorOpAMPBridgeImage added in v0.88.0

func (c *Config) OperatorOpAMPBridgeImage() string

OperatorOpAMPBridgeImage represents the flag to override the OpAMPBridge container image.

func (*Config) TargetAllocatorConfigMapEntry added in v0.33.0

func (c *Config) TargetAllocatorConfigMapEntry() string

TargetAllocatorConfigMapEntry represents the configuration file name for the TargetAllocator. Immutable.

func (*Config) TargetAllocatorImage added in v0.33.0

func (c *Config) TargetAllocatorImage() string

TargetAllocatorImage represents the flag to override the OpenTelemetry TargetAllocator container image.

type Option

type Option func(c *options)

Option represents one specific configuration option.

func WithAutoDetect

func WithAutoDetect(a autodetect.AutoDetect) Option

func WithAutoInstrumentationApacheHttpdImage added in v0.78.0

func WithAutoInstrumentationApacheHttpdImage(s string) Option

func WithAutoInstrumentationDotNetImage added in v0.57.2

func WithAutoInstrumentationDotNetImage(s string) Option

func WithAutoInstrumentationGoImage added in v0.77.0

func WithAutoInstrumentationGoImage(s string) Option

func WithAutoInstrumentationJavaImage added in v0.41.0

func WithAutoInstrumentationJavaImage(s string) Option

func WithAutoInstrumentationNginxImage added in v0.86.0

func WithAutoInstrumentationNginxImage(s string) Option

func WithAutoInstrumentationNodeJSImage added in v0.41.1

func WithAutoInstrumentationNodeJSImage(s string) Option

func WithAutoInstrumentationPythonImage added in v0.41.1

func WithAutoInstrumentationPythonImage(s string) Option

func WithCollectorConfigMapEntry

func WithCollectorConfigMapEntry(s string) Option

func WithCollectorImage

func WithCollectorImage(s string) Option

func WithCreateRBACPermissions added in v0.92.0

func WithCreateRBACPermissions(s bool) Option

func WithEnableApacheHttpdInstrumentation added in v0.95.0

func WithEnableApacheHttpdInstrumentation(s bool) Option

func WithEnableMultiInstrumentation added in v0.95.0

func WithEnableMultiInstrumentation(s bool) Option

func WithLabelFilters added in v0.48.0

func WithLabelFilters(labelFilters []string) Option

func WithLogger

func WithLogger(logger logr.Logger) Option

func WithOpenShiftRoutesAvailability added in v0.90.0

func WithOpenShiftRoutesAvailability(os openshift.RoutesAvailability) Option

func WithOperatorOpAMPBridgeConfigMapEntry added in v0.88.0

func WithOperatorOpAMPBridgeConfigMapEntry(s string) Option

func WithOperatorOpAMPBridgeImage added in v0.70.0

func WithOperatorOpAMPBridgeImage(s string) Option

func WithTargetAllocatorConfigMapEntry added in v0.33.0

func WithTargetAllocatorConfigMapEntry(s string) Option

func WithTargetAllocatorImage added in v0.33.0

func WithTargetAllocatorImage(s string) Option

func WithVersion

func WithVersion(v version.Version) Option

Jump to

Keyboard shortcuts

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