lokistack

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnotateForDiscoveredRules

func AnnotateForDiscoveredRules(ctx context.Context, k k8s.Client) error

AnnotateForDiscoveredRules adds/updates the `loki.grafana.com/rulesDiscoveredAt` annotation to all instance of LokiStack on all namespaces to trigger the reconciliation loop.

func AnnotateForRequiredCertRotation

func AnnotateForRequiredCertRotation(ctx context.Context, k k8s.Client, name, namespace string) error

AnnotateForRequiredCertRotation adds/updates the `loki.grafana.com/certRotationRequiredAt` annotation to the named Lokistack if any of the managed client/serving/ca certificates expired. If no LokiStack is found, then skip reconciliation.

func AnnotateForRulerConfig

func AnnotateForRulerConfig(ctx context.Context, k k8s.Client, name, namespace string) error

AnnotateForRulerConfig adds/updates the `loki.grafana.com/rulerConfigDiscoveredAt` annotation to the named Lokistack in the same namespace of the RulerConfig. If no LokiStack is found, then skip reconciliation.

func RemoveRulerConfigAnnotation

func RemoveRulerConfigAnnotation(ctx context.Context, k k8s.Client, name, namespace string) error

RemoveRulerConfigAnnotation removes the `loki.grafana.com/rulerConfigDiscoveredAt` annotation from the named Lokistack in the same namespace of the RulerConfig. If no LokiStack is found, then skip reconciliation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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