logging

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package logging provides various utility functions regarding optional service log collection for the sf-operator:

* create fluent bit sidecar

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFluentBitSideCarContainer

func CreateFluentBitSideCarContainer(serviceName string, extraLabels []FluentBitLabel, volumeMounts []apiv1.VolumeMount, debug bool) (apiv1.Container, apiv1.Volume)

func CreateForwarderEnvVars

func CreateForwarderEnvVars(name string, extraLabels []FluentBitLabel) []apiv1.EnvVar

func SetupLogForwarding

func SetupLogForwarding(serviceName string, forwarderSpec *v1.FluentBitForwarderSpec, extraLabels []FluentBitLabel, annotations map[string]string) []apiv1.EnvVar

Types

type FluentBitLabel

type FluentBitLabel struct {
	Key   string
	Value string
}

func CreateBaseLoggingExtraKeys added in v0.0.44

func CreateBaseLoggingExtraKeys(name string, component string, container string, namespace string) []FluentBitLabel

type TemplateInputParams added in v0.0.44

type TemplateInputParams struct {
	InUse bool
	Host  string
	Port  string
}

type TemplateLoggingParams added in v0.0.44

type TemplateLoggingParams struct {
	Tag                string
	LogLevel           string
	ForwardInputConfig TemplateInputParams
}

func CreateForwarderConfigTemplateParams added in v0.0.44

func CreateForwarderConfigTemplateParams(tag string, forwarderSpec *v1.FluentBitForwarderSpec) TemplateLoggingParams

Jump to

Keyboard shortcuts

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