operator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

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