Documentation
¶
Index ¶
- func ListOptions(name string) metav1.ListOptions
- func RulerStatus(ctx context.Context, kclient kubernetes.Interface, ...) (*monitoringv1.ThanosRulerStatus, []v1.Pod, error)
- type Config
- type Operator
- func (o *Operator) Iterate(processFn func(metav1.Object, []monitoringv1.Condition))
- func (o *Operator) RefreshStatusFor(obj metav1.Object)
- func (o *Operator) Resolve(ss *appsv1.StatefulSet) 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 ¶
func ListOptions ¶
func ListOptions(name string) metav1.ListOptions
func RulerStatus ¶ added in v0.47.0
func RulerStatus(ctx context.Context, kclient kubernetes.Interface, tr *monitoringv1.ThanosRuler) (*monitoringv1.ThanosRulerStatus, []v1.Pod, error)
RulerStatus evaluates the current status of a ThanosRuler deployment with respect to its specified resource object. It returns the status and a list of pods that are not updated. TODO(simonpasquier): remove after 0.65.0 is released.
Types ¶
type Config ¶
type Config struct {
Host string
TLSInsecure bool
TLSConfig rest.TLSClientConfig
ReloaderConfig operator.ContainerConfig
ThanosDefaultBaseImage string
Namespaces operator.Namespaces
Labels operator.Labels
LocalHost string
LogLevel string
LogFormat string
ThanosRulerSelector string
}
Config defines configuration parameters for the Operator.
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, conf operator.Config, logger log.Logger, r prometheus.Registerer) (*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
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.
Click to show internal directories.
Click to hide internal directories.