thanos

package
v0.73.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListOptions

func ListOptions(name string) metav1.ListOptions

Types

type Config

type Config struct {
	LocalHost              string
	ReloaderConfig         operator.ContainerConfig
	ThanosDefaultBaseImage string
	Annotations            operator.Map
	Labels                 operator.Map
}

Config defines the operator's parameters for the Thanos controller. Whenever the value of one of these parameters is changed, it triggers an update of the managed statefulsets.

type Operator

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

Operator manages life cycle of Thanos deployments and monitoring configurations.

func New

func New(ctx context.Context, restConfig *rest.Config, c operator.Config, logger log.Logger, r prometheus.Registerer, canReadStorageClass bool, erf operator.EventRecorderFactory) (*Operator, error)

New creates a new controller.

func (*Operator) Iterate added in v0.65.0

func (o *Operator) Iterate(processFn func(metav1.Object, []monitoringv1.Condition))

Iterate implements the operator.StatusReconciler interface.

func (*Operator) RefreshStatusFor added in v0.65.0

func (o *Operator) RefreshStatusFor(obj metav1.Object)

RefreshStatus implements the operator.StatusReconciler interface.

func (*Operator) Resolve added in v0.61.0

func (o *Operator) Resolve(ss *appsv1.StatefulSet) metav1.Object

Resolve implements the operator.Syncer interface.

func (*Operator) Run

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

Run the controller.

func (*Operator) Sync added in v0.61.0

func (o *Operator) Sync(ctx context.Context, key string) error

Sync implements the operator.Syncer interface.

func (*Operator) UpdateStatus added in v0.61.0

func (o *Operator) UpdateStatus(ctx context.Context, key string) error

UpdateStatus implements the operator.Syncer interface.

Jump to

Keyboard shortcuts

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