Documentation ¶
Overview ¶
Package config contains the operator's runtime configuration.
Index ¶
- func WithEncodeLevelFormat(s string) zapcore.LevelEncoder
- type Config
- func (c *Config) AnnotationsFilter() []string
- func (c *Config) AutoDetect() error
- func (c *Config) AutoInstrumentationApacheHttpdImage() string
- func (c *Config) AutoInstrumentationDotNetImage() string
- func (c *Config) AutoInstrumentationGoImage() string
- func (c *Config) AutoInstrumentationJavaImage() string
- func (c *Config) AutoInstrumentationNginxImage() string
- func (c *Config) AutoInstrumentationNodeJSImage() string
- func (c *Config) AutoInstrumentationPythonImage() string
- func (c *Config) CollectorConfigMapEntry() string
- func (c *Config) CollectorImage() string
- func (c *Config) CreateRBACPermissions() autoRBAC.Availability
- func (c *Config) EnableApacheHttpdAutoInstrumentation() bool
- func (c *Config) EnableDotNetAutoInstrumentation() bool
- func (c *Config) EnableGoAutoInstrumentation() bool
- func (c *Config) EnableJavaAutoInstrumentation() bool
- func (c *Config) EnableMultiInstrumentation() bool
- func (c *Config) EnableNginxAutoInstrumentation() bool
- func (c *Config) EnableNodeJSAutoInstrumentation() bool
- func (c *Config) EnablePythonAutoInstrumentation() bool
- func (c *Config) LabelsFilter() []string
- func (c *Config) OpenShiftRoutesAvailability() openshift.RoutesAvailability
- func (c *Config) OperatorOpAMPBridgeConfigMapEntry() string
- func (c *Config) OperatorOpAMPBridgeImage() string
- func (c *Config) PrometheusCRAvailability() prometheus.Availability
- func (c *Config) TargetAllocatorConfigMapEntry() string
- func (c *Config) TargetAllocatorImage() string
- type Option
- func WithAnnotationFilters(annotationFilters []string) Option
- func WithAutoDetect(a autodetect.AutoDetect) Option
- func WithAutoInstrumentationApacheHttpdImage(s string) Option
- func WithAutoInstrumentationDotNetImage(s string) Option
- func WithAutoInstrumentationGoImage(s string) Option
- func WithAutoInstrumentationJavaImage(s string) Option
- func WithAutoInstrumentationNginxImage(s string) Option
- func WithAutoInstrumentationNodeJSImage(s string) Option
- func WithAutoInstrumentationPythonImage(s string) Option
- func WithCollectorConfigMapEntry(s string) Option
- func WithCollectorImage(s string) Option
- func WithEnableApacheHttpdInstrumentation(s bool) Option
- func WithEnableDotNetInstrumentation(s bool) Option
- func WithEnableGoInstrumentation(s bool) Option
- func WithEnableJavaInstrumentation(s bool) Option
- func WithEnableMultiInstrumentation(s bool) Option
- func WithEnableNginxInstrumentation(s bool) Option
- func WithEnableNodeJSInstrumentation(s bool) Option
- func WithEnablePythonInstrumentation(s bool) Option
- func WithLabelFilters(labelFilters []string) Option
- func WithLogger(logger logr.Logger) Option
- func WithOpenShiftRoutesAvailability(os openshift.RoutesAvailability) Option
- func WithOperatorOpAMPBridgeConfigMapEntry(s string) Option
- func WithOperatorOpAMPBridgeImage(s string) Option
- func WithPrometheusCRAvailability(pcrd prometheus.Availability) Option
- func WithRBACPermissions(rAuto autoRBAC.Availability) Option
- func WithTargetAllocatorConfigMapEntry(s string) Option
- func WithTargetAllocatorImage(s string) Option
- func WithVersion(v version.Version) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithEncodeLevelFormat ¶ added in v0.100.0
func WithEncodeLevelFormat(s string) zapcore.LevelEncoder
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config holds the static configuration for this operator.
func (*Config) AnnotationsFilter ¶ added in v0.96.0
AnnotationsFilter Returns the filters converted to regex strings used to filter out unwanted labels from propagations.
func (*Config) AutoDetect ¶
AutoDetect attempts to automatically detect relevant information for this operator.
func (*Config) AutoInstrumentationApacheHttpdImage ¶ added in v0.78.0
AutoInstrumentationApacheHttpdImage returns OpenTelemetry ApacheHttpd auto-instrumentation container image.
func (*Config) AutoInstrumentationDotNetImage ¶ added in v0.57.2
AutoInstrumentationDotNetImage returns OpenTelemetry DotNet auto-instrumentation container image.
func (*Config) AutoInstrumentationGoImage ¶ added in v0.77.0
AutoInstrumentationGoImage returns OpenTelemetry Go auto-instrumentation container image.
func (*Config) AutoInstrumentationJavaImage ¶ added in v0.41.0
AutoInstrumentationJavaImage returns OpenTelemetry Java auto-instrumentation container image.
func (*Config) AutoInstrumentationNginxImage ¶ added in v0.86.0
AutoInstrumentationNginxImage returns OpenTelemetry Nginx auto-instrumentation container image.
func (*Config) AutoInstrumentationNodeJSImage ¶ added in v0.41.1
AutoInstrumentationNodeJSImage returns OpenTelemetry NodeJS auto-instrumentation container image.
func (*Config) AutoInstrumentationPythonImage ¶ added in v0.41.1
AutoInstrumentationPythonImage returns OpenTelemetry Python auto-instrumentation container image.
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) CreateRBACPermissions ¶ added in v0.92.0
func (c *Config) CreateRBACPermissions() autoRBAC.Availability
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
EnableApacheHttpdAutoInstrumentation is true when the operator supports ApacheHttpd auto instrumentation.
func (*Config) EnableDotNetAutoInstrumentation ¶ added in v0.96.0
EnableDotNetAutoInstrumentation is true when the operator supports dotnet auto instrumentation.
func (*Config) EnableGoAutoInstrumentation ¶ added in v0.99.0
EnableGoAutoInstrumentation is true when the operator supports Go auto instrumentation.
func (*Config) EnableJavaAutoInstrumentation ¶ added in v0.99.0
EnableJavaAutoInstrumentation is true when the operator supports nginx auto instrumentation.
func (*Config) EnableMultiInstrumentation ¶ added in v0.95.0
EnableMultiInstrumentation is true when the operator supports multi instrumentation.
func (*Config) EnableNginxAutoInstrumentation ¶ added in v0.97.0
EnableNginxAutoInstrumentation is true when the operator supports nginx auto instrumentation.
func (*Config) EnableNodeJSAutoInstrumentation ¶ added in v0.99.0
EnableNodeJSAutoInstrumentation is true when the operator supports dotnet auto instrumentation.
func (*Config) EnablePythonAutoInstrumentation ¶ added in v0.97.0
EnablePythonAutoInstrumentation is true when the operator supports dotnet auto instrumentation.
func (*Config) LabelsFilter ¶ added in v0.48.0
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
OperatorOpAMPBridgeImageConfigMapEntry represents the configuration file name for the OpAMPBridge. Immutable.
func (*Config) OperatorOpAMPBridgeImage ¶ added in v0.88.0
OperatorOpAMPBridgeImage represents the flag to override the OpAMPBridge container image.
func (*Config) PrometheusCRAvailability ¶ added in v0.97.1
func (c *Config) PrometheusCRAvailability() prometheus.Availability
PrometheusCRAvailability represents the availability of the Prometheus Operator CRDs.
func (*Config) TargetAllocatorConfigMapEntry ¶ added in v0.33.0
TargetAllocatorConfigMapEntry represents the configuration file name for the TargetAllocator. Immutable.
func (*Config) TargetAllocatorImage ¶ added in v0.33.0
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 WithAnnotationFilters ¶ added in v0.96.0
WithAnnotationFilters is additive if called multiple times. It works off of a few default filters to prevent unnecessary rollouts. The defaults include the following: * kubectl.kubernetes.io/last-applied-configuration.
func WithAutoDetect ¶
func WithAutoDetect(a autodetect.AutoDetect) Option
func WithAutoInstrumentationApacheHttpdImage ¶ added in v0.78.0
func WithAutoInstrumentationDotNetImage ¶ added in v0.57.2
func WithAutoInstrumentationGoImage ¶ added in v0.77.0
func WithAutoInstrumentationJavaImage ¶ added in v0.41.0
func WithAutoInstrumentationNginxImage ¶ added in v0.86.0
func WithAutoInstrumentationNodeJSImage ¶ added in v0.41.1
func WithAutoInstrumentationPythonImage ¶ added in v0.41.1
func WithCollectorImage ¶
func WithEnableApacheHttpdInstrumentation ¶ added in v0.95.0
func WithEnableDotNetInstrumentation ¶ added in v0.96.0
func WithEnableGoInstrumentation ¶ added in v0.99.0
func WithEnableJavaInstrumentation ¶ added in v0.99.0
func WithEnableMultiInstrumentation ¶ added in v0.95.0
func WithEnableNginxInstrumentation ¶ added in v0.97.0
func WithEnableNodeJSInstrumentation ¶ added in v0.99.0
func WithEnablePythonInstrumentation ¶ added in v0.97.0
func WithLabelFilters ¶ added in v0.48.0
func WithLogger ¶
func WithOpenShiftRoutesAvailability ¶ added in v0.90.0
func WithOpenShiftRoutesAvailability(os openshift.RoutesAvailability) Option
func WithOperatorOpAMPBridgeConfigMapEntry ¶ added in v0.88.0
func WithOperatorOpAMPBridgeImage ¶ added in v0.70.0
func WithPrometheusCRAvailability ¶ added in v0.97.1
func WithPrometheusCRAvailability(pcrd prometheus.Availability) Option
func WithRBACPermissions ¶ added in v0.100.0
func WithRBACPermissions(rAuto autoRBAC.Availability) Option