credentials

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func AddCredentials

func AddCredentials(cluster *capi.Cluster, credentials *v1.Secret) (bool, error)

AddCredentials - Add credentials to secret if needed

func CredentialsSecretMeta

func CredentialsSecretMeta(name string, namespace string) metav1.ObjectMeta

credentialsSecretMeta returns metadata for the logging-operator credentials secret.

func GenerateLoggingCredentialsBasicSecret

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

func GenerateTracingCredentialsBasicSecret

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

func GetPassword

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

func RemoveCredentials

func RemoveCredentials(cluster *capi.Cluster, credentials *v1.Secret) bool

RemoveCredentials - Remove credentials from credentials secret

Types

type Resource

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

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

func (*Resource) ReconcileCreate

func (r *Resource) ReconcileCreate(ctx context.Context, cluster *capi.Cluster) (ctrl.Result, error)

ReconcileCreate ensures a secret exists for the given cluster.

func (*Resource) ReconcileDelete

func (r *Resource) ReconcileDelete(ctx context.Context, cluster *capi.Cluster) (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