operator

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: Apache-2.0 Imports: 33 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ObservabilityOperatorName = "observability-operator"
)

Variables

This section is empty.

Functions

func NewScheme

func NewScheme(cfg *OperatorConfiguration) *runtime.Scheme

func WithAlertmanagerImage

func WithAlertmanagerImage(image string) func(*OperatorConfiguration)

func WithFeatureGates

func WithFeatureGates(featureGates FeatureGates) func(*OperatorConfiguration)

func WithHealthProbeAddr

func WithHealthProbeAddr(addr string) func(*OperatorConfiguration)

func WithMetricsAddr

func WithMetricsAddr(addr string) func(*OperatorConfiguration)

func WithNamespace

func WithNamespace(ns string) func(*OperatorConfiguration)

func WithPrometheusImage

func WithPrometheusImage(image string) func(*OperatorConfiguration)

func WithThanosQuerierImage

func WithThanosQuerierImage(image string) func(*OperatorConfiguration)

func WithThanosSidecarImage

func WithThanosSidecarImage(image string) func(*OperatorConfiguration)

func WithUIPluginImages

func WithUIPluginImages(images map[string]string) func(*OperatorConfiguration)

Types

type FeatureGates

type FeatureGates struct {
	OpenShift OpenShiftFeatureGates `json:"openshift,omitempty"`
}

type OpenShiftFeatureGates

type OpenShiftFeatureGates struct {
	Enabled bool `json:"enabled,omitempty"`
}

type Operator

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

Operator embeds a manager and a serving certificate controller (for OpenShift installations).

func New

func (*Operator) GetClient

func (o *Operator) GetClient() client.Client

func (*Operator) Start

func (o *Operator) Start(ctx context.Context) error

type OperatorConfiguration

type OperatorConfiguration struct {
	Namespace       string
	MetricsAddr     string
	HealthProbeAddr string
	Prometheus      stackctrl.PrometheusConfiguration
	Alertmanager    stackctrl.AlertmanagerConfiguration
	ThanosSidecar   stackctrl.ThanosConfiguration
	ThanosQuerier   tqctrl.ThanosConfiguration
	UIPlugins       uictrl.UIPluginsConfiguration
	FeatureGates    FeatureGates
}

func NewOperatorConfiguration

func NewOperatorConfiguration(opts ...func(*OperatorConfiguration)) *OperatorConfiguration

Jump to

Keyboard shortcuts

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