loggingsecret

package
v0.34.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAlloyLoggingSecret added in v0.7.0

func GenerateAlloyLoggingSecret(cluster *capi.Cluster, credentialsSecret *v1.Secret, lokiURL string, tracingEnabled bool, tracingCredentialsSecret *v1.Secret) (map[string][]byte, error)

func GenerateLoggingSecret

func GenerateLoggingSecret(cluster *capi.Cluster, loggingAgent *common.LoggingAgent, loggingCredentialsSecret *v1.Secret, lokiURL string, installationName string, insecureCA bool) (v1.Secret, error)

func GeneratePromtailLoggingSecret added in v0.7.0

func GeneratePromtailLoggingSecret(cluster *capi.Cluster, credentialsSecret *v1.Secret, lokiURL string, installationName string, insecureCA bool) (map[string][]byte, error)

GeneratePromtailLoggingSecret returns a secret for the Loki-multi-tenant-proxy config

func GetLoggingSecretName added in v0.7.0

func GetLoggingSecretName(cluster *capi.Cluster) string

func SecretMeta

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

SecretMeta returns metadata for the logging-secret

Types

type Resource added in v0.30.0

type Resource struct {
	Client client.Client
	Config config.Config
}

Resource implements a resource.Interface to handle Logging secret: extra logging secret about where and how to send logs

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-secret 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 - Not much to do here when a cluster is deleted

Jump to

Keyboard shortcuts

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