Documentation ¶
Index ¶
- func AnnotateForDiscoveredRules(ctx context.Context, k k8s.Client) error
- func AnnotateForRequiredCertRotation(ctx context.Context, k k8s.Client, name, namespace string) error
- func AnnotateForRulerConfig(ctx context.Context, k k8s.Client, name, namespace string) error
- func RemoveRulerConfigAnnotation(ctx context.Context, k k8s.Client, name, namespace string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnnotateForDiscoveredRules ¶
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 ¶
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 ¶
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.