observability

package
v0.0.0-...-fb5a1ab Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluateAnnotationsForEnabledCapabilities

func EvaluateAnnotationsForEnabledCapabilities(annotations map[string]string, options framework.Options)

EvaluateAnnotationsForEnabledCapabilities populates generator options with capabilities enabled by the ClusterLogForwarder

func FetchClusterLogForwarder

func FetchClusterLogForwarder(k8sClient client.Client, namespace, name string) (*obs.ClusterLogForwarder, error)

FetchClusterLogForwarder returns a copy of the ClusterLogForwarder

func FetchConfigMaps

func FetchConfigMaps(k8sClient client.Client, namespace string, names ...string) (configMaps []*corev1.ConfigMap, err error)

FetchConfigMaps from a list of names in a given namespace

func FetchSecrets

func FetchSecrets(k8sClient client.Client, namespace string, names ...string) (secrets []*corev1.Secret, err error)

FetchSecrets from a list of names in a given namespace

func GenerateConfig

func GenerateConfig(k8Client client.Client, clf obs.ClusterLogForwarder, resourceNames factory.ForwarderResourceNames, secrets internalobs.Secrets, op framework.Options) (config string, err error)

func MapConfigMaps

func MapConfigMaps(k8Client client.Client, namespace string, inputs internalobs.Inputs, outputs internalobs.Outputs) (configMaps map[string]*corev1.ConfigMap, err error)

func MapSecrets

func MapSecrets(k8Client client.Client, namespace string, inputs internalobs.Inputs, outputs internalobs.Outputs) (secretMap map[string]*corev1.Secret, err error)

func ReconcileCollector

func ReconcileCollector(context internalcontext.ForwarderContext, pollInterval, timeout time.Duration) (err error)

ReconcileCollector generates and deploys all resources required by the ClusterLogForwarder

func RemoveStaleWorkload

func RemoveStaleWorkload(k8Client client.Client, forwarder *obsv1.ClusterLogForwarder) error

RemoveStaleWorkload removes existing workload if the ClusterLogForwarder was modified such that the deployment will change from a daemonSet to a deployment or vise versa

Types

type ClusterLogForwarderReconciler

type ClusterLogForwarderReconciler struct {
	Scheme *runtime.Scheme

	NewForwarderContext func() internalcontext.ForwarderContext

	PollInterval time.Duration

	TimeOut time.Duration
}

ClusterLogForwarderReconciler reconciles a ClusterLogForwarder object

func (*ClusterLogForwarderReconciler) Reconcile

func (r *ClusterLogForwarderReconciler) Reconcile(_ context.Context, req ctrl.Request) (result ctrl.Result, err error)

func (*ClusterLogForwarderReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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