rules

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildOptions added in v0.6.0

BuildOptions returns the ruler options needed to generate Kubernetes resource manifests. The returned error can be a status.DegradedError in the following cases:

  • When remote write is enabled and the authorization Secret is missing.
  • When remote write is enabled and the authorization Secret data is invalid.

func Cleanup added in v0.6.0

func Cleanup(ctx context.Context, log logr.Logger, k k8s.Client, stack *v1.LokiStack) error

Cleanup removes the ruler component's statefulset and configmaps if available, or else it returns an error to retry the reconciliation loop.

func ExtractRulerSecret

func ExtractRulerSecret(s *corev1.Secret, t lokiv1.RemoteWriteAuthType) (*manifests.RulerSecret, error)

ExtractRulerSecret reads a k8s secret infto a ruler secret struct if valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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