Documentation ¶
Index ¶
- Constants
- func AddLoggingCredentials(lc loggedcluster.Interface, loggingCredentials *v1.Secret) (bool, error)
- func GenerateLoggingCredentialsBasicSecret(lc loggedcluster.Interface) *v1.Secret
- func GetPassword(lc loggedcluster.Interface, credentialsSecret *v1.Secret, username string) (string, error)
- func LoggingCredentialsSecretMeta(lc loggedcluster.Interface) metav1.ObjectMeta
- func RemoveLoggingCredentials(lc loggedcluster.Interface, loggingCredentials *v1.Secret) bool
- type Reconciler
Constants ¶
View Source
const ( //#nosec G101 LoggingCredentialsName = "logging-credentials" LoggingCredentialsNamespace = "monitoring" )
Variables ¶
This section is empty.
Functions ¶
func AddLoggingCredentials ¶ added in v0.1.0
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 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 ¶
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
Click to show internal directories.
Click to hide internal directories.