loggingcredentials

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: 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(lc loggedcluster.Interface, loggingCredentials *v1.Secret) (bool, error)

AddLoggingCredentials - Add credentials to LoggingCredentials secret if needed

func GenerateLoggingCredentialsBasicSecret

func GenerateLoggingCredentialsBasicSecret(lc loggedcluster.Interface) *v1.Secret

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

func GetPassword added in v0.1.0

func GetPassword(lc loggedcluster.Interface, credentialsSecret *v1.Secret, username string) (string, error)

func LoggingCredentialsSecretMeta

func LoggingCredentialsSecretMeta(lc loggedcluster.Interface) metav1.ObjectMeta

LoggingCredentialsSecretMeta returns metadata for the logging-operator credentials secret.

func RemoveLoggingCredentials added in v0.1.0

func RemoveLoggingCredentials(lc loggedcluster.Interface, loggingCredentials *v1.Secret) bool

RemoveLoggingCredentials - Remove credentials from LoggingCredentials secret

Types

type Reconciler

type Reconciler struct {
	client.Client
}

Reconciler implements a reconciler.Interface to handle Logging Credentials: store and maintain logging credentials

func (*Reconciler) ReconcileCreate

func (r *Reconciler) ReconcileCreate(ctx context.Context, lc loggedcluster.Interface) (ctrl.Result, error)

ReconcileCreate ensures a secret exists for the given cluster.

func (*Reconciler) ReconcileDelete

func (r *Reconciler) ReconcileDelete(ctx context.Context, lc loggedcluster.Interface) (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