common

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ObservabilityBundleAppName string = "observability-bundle"
View Source
const (
	// ReadUser is the global user for reading logs
	ReadUser = "read"
)

Variables

This section is empty.

Functions

func AddCommonLabels

func AddCommonLabels(labels map[string]string)

func GetObservabilityBundleAppVersion added in v0.5.1

func GetObservabilityBundleAppVersion(lc loggedcluster.Interface, client client.Client, ctx context.Context) (version semver.Version, err error)

func GrafanaAgentExtraSecretName added in v0.2.0

func GrafanaAgentExtraSecretName() string

func IsLoggingEnabled

func IsLoggingEnabled(lc loggedcluster.Interface) bool

func IsWorkloadCluster added in v0.0.4

func IsWorkloadCluster(lc loggedcluster.Interface) bool

func ObservabilityBundleAppMeta added in v0.1.3

func ObservabilityBundleAppMeta(lc loggedcluster.Interface) metav1.ObjectMeta

ObservabilityBundleAppMeta returns metadata for the observability bundle app.

func ObservabilityBundleConfigMapMeta added in v0.1.3

func ObservabilityBundleConfigMapMeta(lc loggedcluster.Interface) metav1.ObjectMeta

ObservabilityBundleConfigMapMeta returns metadata for the observability bundle extra values configmap.

func ReadLokiIngressURL added in v0.2.0

func ReadLokiIngressURL(ctx context.Context, lc loggedcluster.Interface, client client.Client) (string, error)

Read Loki URL from ingress

Types

This section is empty.

Jump to

Keyboard shortcuts

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