loggingcredentials

package
v0.32.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	//#nosec G101
	LoggingCredentialsName      = "logging-credentials"
	LoggingCredentialsNamespace = "monitoring"
)

Variables

This section is empty.

Functions

func AddLoggingCredentials added in v0.1.0

func AddLoggingCredentials(cluster *capi.Cluster, loggingCredentials *v1.Secret) (bool, error)

AddLoggingCredentials - Add credentials to LoggingCredentials secret if needed

func GenerateLoggingCredentialsBasicSecret

func GenerateLoggingCredentialsBasicSecret(cluster *capi.Cluster) *v1.Secret

GenerateObservabilityBundleConfigMap returns a configmap for the observabilitybundle application to enable logging.

func GetPassword added in v0.1.0

func GetPassword(cluster *capi.Cluster, credentialsSecret *v1.Secret, username string) (string, error)

func LoggingCredentialsSecretMeta

func LoggingCredentialsSecretMeta() metav1.ObjectMeta

LoggingCredentialsSecretMeta returns metadata for the logging-operator credentials secret.

func RemoveLoggingCredentials added in v0.1.0

func RemoveLoggingCredentials(cluster *capi.Cluster, loggingCredentials *v1.Secret) bool

RemoveLoggingCredentials - Remove credentials from LoggingCredentials secret

Types

type Resource added in v0.30.0

type Resource struct {
	Client client.Client
}

Resource implements a resource.Interface to handle Logging Credentials: store and maintain logging credentials

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 a secret exists for the given cluster.

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 ensures a secret is removed for the current cluster

Jump to

Keyboard shortcuts

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