loggingconfig

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMeta

func ConfigMeta(cluster *capi.Cluster) metav1.ObjectMeta

ConfigMeta returns metadata for the logging-config

func GenerateAlloyLoggingConfig added in v0.7.0

func GenerateAlloyLoggingConfig(cluster *capi.Cluster, loggingAgent *common.LoggingAgent, observabilityBundleVersion semver.Version, defaultNamespaces, tenants []string, installationName string, insecureCA bool) (string, error)

GenerateAlloyLoggingConfig returns a configmap for the logging extra-config

func GenerateLoggingConfig

func GenerateLoggingConfig(cluster *capi.Cluster, loggingAgent *common.LoggingAgent, observabilityBundleVersion semver.Version, defaultNamespaces, tenants []string, installationName string, insecureCA bool) (v1.ConfigMap, error)

func GeneratePromtailLoggingConfig added in v0.7.0

func GeneratePromtailLoggingConfig(cluster *capi.Cluster, installationName string) (string, error)

GeneratePromtailLoggingConfig returns a configmap for the logging extra-config

Types

type Resource added in v0.30.0

type Resource struct {
	Client                           client.Client
	Config                           config.Config
	DefaultWorkloadClusterNamespaces []string
}

Resource implements a resource.Interface to handle Logging config: extra logging config defining what we want to retrieve.

func (*Resource) ReconcileCreate added in v0.30.0

func (r *Resource) ReconcileCreate(ctx context.Context, cluster *capi.Cluster, loggingAgent *common.LoggingAgent) (ctrl.Result, error)

ReconcileCreate ensures logging-config is created with the right credentials

func (*Resource) ReconcileDelete added in v0.30.0

func (r *Resource) ReconcileDelete(ctx context.Context, cluster *capi.Cluster, loggingAgent *common.LoggingAgent) (ctrl.Result, error)

ReconcileDelete ensure logging-config is deleted for the given cluster.

Jump to

Keyboard shortcuts

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