controllers

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateLogQLOnServerFunc added in v0.5.0

func ValidateLogQLOnServerFunc(client *http.Client, lokiURL string, logQLExpr string) (bool, error)

Types

type LokiRuleReconciler

type LokiRuleReconciler struct {
	client.Client
	Scheme                *runtime.Scheme
	Logger                logger.Logger
	LokiClient            *http.Client
	LokiRulesPath         string
	LokiLabelSelector     *metav1.LabelSelector
	LokiNamespace         string
	LokiRuleConfigMapName string
	LokiURL               string
	UpdateLoki            bool
}

LokiRuleReconciler reconciles a LokiRule object

func (*LokiRuleReconciler) Reconcile

func (r *LokiRuleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*LokiRuleReconciler) SetupWithManager

func (r *LokiRuleReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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