Documentation ¶
Index ¶
- func BuildOptions(ctx context.Context, log logr.Logger, k k8s.Client, stack *lokiv1.LokiStack) ([]lokiv1.AlertingRule, []lokiv1.RecordingRule, manifests.Ruler, ...)
- func Cleanup(ctx context.Context, log logr.Logger, k k8s.Client, stack *v1.LokiStack) error
- func ExtractRulerSecret(s *corev1.Secret, t lokiv1.RemoteWriteAuthType) (*manifests.RulerSecret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOptions ¶ added in v0.6.0
func BuildOptions( ctx context.Context, log logr.Logger, k k8s.Client, stack *lokiv1.LokiStack, ) ([]lokiv1.AlertingRule, []lokiv1.RecordingRule, manifests.Ruler, manifestsocp.Options, error)
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
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.
Click to show internal directories.
Click to hide internal directories.