Documentation ¶
Overview ¶
Package config contains the operator's runtime configuration.
Index ¶
- type Config
- func (c *Config) AutoDetect() error
- func (c *Config) AutoInstrumentationDotNetImage() string
- func (c *Config) AutoInstrumentationGoImage() string
- func (c *Config) AutoInstrumentationJavaImage() string
- func (c *Config) AutoInstrumentationNodeJSImage() string
- func (c *Config) AutoInstrumentationPhpImage() string
- func (c *Config) AutoInstrumentationPythonImage() string
- func (c *Config) AutoInstrumentationRubyImage() string
- func (c *Config) AutoscalingVersion() autodetect.AutoscalingVersion
- func (c *Config) LabelsFilter() []string
- func (c *Config) OpenShiftRoutes() autodetect.OpenShiftRoutesAvailability
- func (c *Config) RegisterOpenShiftRoutesChangeCallback(f func() error)
- func (c *Config) StartAutoDetect() error
- type Option
- func WithAutoDetect(a autodetect.AutoDetect) Option
- func WithAutoDetectFrequency(t time.Duration) Option
- func WithAutoInstrumentationDotNetImage(s string) Option
- func WithAutoInstrumentationGoImage(s string) Option
- func WithAutoInstrumentationJavaImage(s string) Option
- func WithAutoInstrumentationNodeJSImage(s string) Option
- func WithAutoInstrumentationPhpImage(s string) Option
- func WithAutoInstrumentationPythonImage(s string) Option
- func WithAutoInstrumentationRubyImage(s string) Option
- func WithLabelFilters(labelFilters []string) Option
- func WithLogger(logger logr.Logger) Option
- func WithOnOpenShiftRoutesChangeCallback(f func() error) Option
- func WithPlatform(ora autodetect.OpenShiftRoutesAvailability) 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 {
// 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) AutoInstrumentationDotNetImage ¶
AutoInstrumentationDotNetImage returns New Relic DotNet auto-instrumentation container image.
func (*Config) AutoInstrumentationGoImage ¶
AutoInstrumentationGoImage returns Opentelemtrey Go auto-instrumentation container image.
func (*Config) AutoInstrumentationJavaImage ¶
AutoInstrumentationJavaImage returns New Relic Java auto-instrumentation container image.
func (*Config) AutoInstrumentationNodeJSImage ¶
AutoInstrumentationNodeJSImage returns New Relic NodeJS auto-instrumentation container image.
func (*Config) AutoInstrumentationPhpImage ¶
AutoInstrumentationDotNetImage returns New Relic DotNet auto-instrumentation container image.
func (*Config) AutoInstrumentationPythonImage ¶
AutoInstrumentationPythonImage returns New Relic Python auto-instrumentation container image.
func (*Config) AutoInstrumentationRubyImage ¶ added in v0.3.0
AutoInstrumentationRubyImage returns New Relic Ruby auto-instrumentation container image.
func (*Config) AutoscalingVersion ¶
func (c *Config) AutoscalingVersion() autodetect.AutoscalingVersion
AutoscalingVersion represents the preferred version of autoscaling.
func (*Config) LabelsFilter ¶
LabelsFilter Returns the filters converted to regex strings used to filter out unwanted labels from propagations.
func (*Config) OpenShiftRoutes ¶
func (c *Config) OpenShiftRoutes() autodetect.OpenShiftRoutesAvailability
OpenShiftRoutes represents the availability of the OpenShift Routes API.
func (*Config) RegisterOpenShiftRoutesChangeCallback ¶
RegisterOpenShiftRoutesChangeCallback registers the given function as a callback that is called when the OpenShift Routes detection detects a change.
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
func WithAutoDetectFrequency ¶
func WithAutoInstrumentationRubyImage ¶ added in v0.3.0
func WithLabelFilters ¶
func WithLogger ¶
func WithPlatform ¶
func WithPlatform(ora autodetect.OpenShiftRoutesAvailability) Option