Documentation
¶
Overview ¶
Package config contains the operator's runtime configuration.
Index ¶
- func WithEncodeLevelFormat(s string) zapcore.LevelEncoder
- type Config
- type Option
- func WithAnnotationFilters(annotationFilters []string) 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 WithCertManagerAvailability(cmAvl certmanager.Availability) 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 WithIgnoreMissingCollectorCRDs(b 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
- type TLSConfig
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 {
// TargetAllocatorImage represents the flag to override the OpenTelemetry TargetAllocator container image.
TargetAllocatorImage string
// OperatorOpAMPBridgeImage represents the flag to override the OpAMPBridge container image.
OperatorOpAMPBridgeImage string
// AutoInstrumentationPythonImage is the OpenTelemetry Python auto-instrumentation container image.
AutoInstrumentationPythonImage string
// CollectorImage represents the flag to override the OpenTelemetry Collector container image.
CollectorImage string
// CollectorConfigMapEntry represents the configuration file name for the collector. Immutable.
CollectorConfigMapEntry string
// CreateRBACPermissions is true when the operator can create RBAC permissions for SAs running a collector instance. Immutable.
CreateRBACPermissions autoRBAC.Availability
// EnableMultiInstrumentation is true when the operator supports multi instrumentation.
EnableMultiInstrumentation bool
// EnableApacheHttpdAutoInstrumentation is true when the operator supports ApacheHttpd auto instrumentation.
EnableApacheHttpdInstrumentation bool
// EnableDotNetAutoInstrumentation is true when the operator supports dotnet auto instrumentation.
EnableDotNetInstrumentation bool
// EnableGoAutoInstrumentation is true when the operator supports Go auto instrumentation.
EnableGoAutoInstrumentation bool
// EnableNginxAutoInstrumentation is true when the operator supports nginx auto instrumentation.
EnableNginxAutoInstrumentation bool
// EnablePythonAutoInstrumentation is true when the operator supports dotnet auto instrumentation.
EnablePythonAutoInstrumentation bool
// EnableNodeJSAutoInstrumentation is true when the operator supports dotnet auto instrumentation.
EnableNodeJSAutoInstrumentation bool
// EnableJavaAutoInstrumentation is true when the operator supports java auto instrumentation.
EnableJavaAutoInstrumentation bool
// AutoInstrumentationDotNetImage is the OpenTelemetry DotNet auto-instrumentation container image.
AutoInstrumentationDotNetImage string
// AutoInstrumentationGoImage is the OpenTelemetry Go auto-instrumentation container image.
AutoInstrumentationGoImage string
// AutoInstrumentationApacheHttpdImage is the OpenTelemetry ApacheHttpd auto-instrumentation container image.
AutoInstrumentationApacheHttpdImage string
// AutoInstrumentationNginxImage is the OpenTelemetry Nginx auto-instrumentation container image.
AutoInstrumentationNginxImage string
// TargetAllocatorConfigMapEntry represents the configuration file name for the TargetAllocator. Immutable.
TargetAllocatorConfigMapEntry string
// OperatorOpAMPBridgeImageConfigMapEntry represents the configuration file name for the OpAMPBridge. Immutable.
OperatorOpAMPBridgeConfigMapEntry string
// AutoInstrumentationNodeJSImage is the OpenTelemetry NodeJS auto-instrumentation container image.
AutoInstrumentationNodeJSImage string
// AutoInstrumentationJavaImage returns OpenTelemetry Java auto-instrumentation container image.
AutoInstrumentationJavaImage string
// OpenShiftRoutesAvailability represents the availability of the OpenShift Routes API.
OpenShiftRoutesAvailability openshift.RoutesAvailability
// PrometheusCRAvailability represents the availability of the Prometheus Operator CRDs.
PrometheusCRAvailability prometheus.Availability
// CertManagerAvailability represents the availability of the Cert-Manager.
CertManagerAvailability certmanager.Availability
// TargetAllocatorAvailability represents the availability of the TargetAllocator CRD.
TargetAllocatorAvailability targetallocator.Availability
// CollectorAvailability represents the availability of the OpenTelemetryCollector CRD.
CollectorAvailability collector.Availability
// IgnoreMissingCollectorCRDs is true if the operator can ignore missing OpenTelemetryCollector CRDs.
IgnoreMissingCollectorCRDs bool
// LabelsFilter Returns the filters converted to regex strings used to filter out unwanted labels from propagations.
LabelsFilter []string
// AnnotationsFilter Returns the filters converted to regex strings used to filter out unwanted labels from propagations.
AnnotationsFilter []string
// contains filtered or unexported fields
}
Config holds the static configuration for this operator.
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 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 WithCertManagerAvailability ¶ added in v0.111.0
func WithCertManagerAvailability(cmAvl certmanager.Availability) Option
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 WithIgnoreMissingCollectorCRDs ¶ added in v0.125.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
func WithTargetAllocatorConfigMapEntry ¶ added in v0.33.0
func WithTargetAllocatorImage ¶ added in v0.33.0
func WithVersion ¶
type TLSConfig ¶ added in v0.125.0
func (TLSConfig) ApplyTLSConfig ¶ added in v0.125.0
ApplyTLSConfig get the option from command argument (tlsConfig), check the validity through k8s apiflag and set the config for webhook server. refer to https://pkg.go.dev/k8s.io/component-base/cli/flag
Click to show internal directories.
Click to hide internal directories.