Documentation
¶
Index ¶
- type Config
- type ControllerOption
- type Operator
- func (o *Operator) Iterate(processFn func(metav1.Object, []monitoringv1.Condition))
- func (o *Operator) RefreshStatusFor(obj metav1.Object)
- func (o *Operator) Run(ctx context.Context) error
- func (o *Operator) Sync(ctx context.Context, key string) error
- func (o *Operator) UpdateStatus(ctx context.Context, key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 ControllerOption ¶ added in v0.76.0
type ControllerOption func(*Operator)
func WithConfigResourceStatus ¶ added in v0.87.0
func WithConfigResourceStatus() ControllerOption
WithConfigResourceStatus tells that the controller can manage the status of configuration resources.
func WithStorageClassValidation ¶ added in v0.76.0
func WithStorageClassValidation() ControllerOption
WithStorageClassValidation tells that the controller should verify that the Prometheus spec references a valid StorageClass name.
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 *slog.Logger, r prometheus.Registerer, options ...ControllerOption) (*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
RefreshStatusFor implements the operator.StatusReconciler interface.