promtailtoggle

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateObservabilityBundleConfigMap

func GenerateObservabilityBundleConfigMap(lc loggedcluster.Interface) (v1.ConfigMap, error)

GenerateObservabilityBundleConfigMap returns a configmap for the observabilitybundle application to enable promtail.

func ObservabilityBundleConfigMapMeta

func ObservabilityBundleConfigMapMeta(lc loggedcluster.Interface) metav1.ObjectMeta

ObservabilityBundleConfigMapMeta returns metadata for the observability bundle extra values configmap.

Types

type Reconciler

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

Reconciler implements a reconciler.Interface to handle Promtail toggle: enable or disable Promtail in a given Cluster.

func (*Reconciler) ReconcileCreate

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

ReconcileCreate ensure Promtail is enabled in the given cluster.

func (*Reconciler) ReconcileDelete

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

ReconcileDelete ensure Promtail is disabled for the given cluster.

type Values

type Values struct {
	Apps map[string]app `yaml:"apps" json:"apps"`
}

Jump to

Keyboard shortcuts

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