promtailwiring

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObservabilityBundleAppMeta

func ObservabilityBundleAppMeta(lc loggedcluster.Interface) metav1.ObjectMeta

ObservabilityBundleAppMeta returns metadata for the observability bundle app.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

Reconciler implements a reconciler.Interface to handle Promtail wiring: set or unset the user value configmap created by promtail-toggle in the observability bundle.

func (*Reconciler) ReconcileCreate

func (r *Reconciler) ReconcileCreate(ctx context.Context, lc loggedcluster.Interface) (ctrl.Result, error)

ReconcileCreate ensure user value configmap is set in observability bundle for the given cluster.

func (*Reconciler) ReconcileDelete

func (r *Reconciler) ReconcileDelete(ctx context.Context, lc loggedcluster.Interface) (ctrl.Result, error)

ReconcileCreate ensure user value configmap is unset in observability bundle for the given cluster.

Jump to

Keyboard shortcuts

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