loggingcredentials

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GenerateLoggingCredentialsBasicSecret

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

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

func GetLogin

func GetLogin(lc loggedcluster.Interface, credentialsSecret *v1.Secret, user string) (string, error)

func GetPass

func GetPass(lc loggedcluster.Interface, credentialsSecret *v1.Secret, user string) (string, error)

func LoggingCredentialsSecretMeta

func LoggingCredentialsSecretMeta(lc loggedcluster.Interface) metav1.ObjectMeta

LoggingCredentialsSecretMeta returns metadata for the logging-operator credentials secret.

func UpdateLoggingCredentials

func UpdateLoggingCredentials(loggingCredentials *v1.Secret) bool

Update a LoggingCredentials secret if needed

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