package
1.3.0-rc3
Repository: https://github.com/percona/everest-operator.git
Documentation: pkg.go.dev
# Functions
BackupStoragePrefix returns the prefix for the backup storage.
CreateOrUpdate creates or updates a resource.
CreateOrUpdateSecretData creates or updates the data of a secret.
DefaultAffinitySettings returns the default corev1.Affinity object used in Everest.
EnqueueObjectsInNamespace returns an event handler that should be attached with Namespace watchers.
GetBackupStorage returns a BackupStorage object with the specified name and namespace.
GetClusterType returns the type of the cluster on which this operator is running.
GetDatabaseEngine gets the DatabaseEngine object with the specified name and namespace.
GetDBMonitoringConfig returns the MonitoringConfig object for the given DatabaseCluster object.
GetOperatorImage returns the image of the operator running in the cluster for the specified deployment name and namespace.
GetOperatorVersion returns the version of the operator running in the cluster for the specified deployment name and namespace.
GetRecommendedCRVersion returns the recommended CR version for the operator.
GetRepoNameByBackupStorage returns the name of the repo that corresponds to the given backup storage.
GetSecretFromMonitoringConfig gets the secret data from the MonitoringConfig.
HandleDBBackupsCleanup handles the cleanup of the dbbackup objects.
HandleUpstreamClusterCleanup handles the cleanup of the psdmb objects.
IsDatabaseClusterRestoreRunning returns true if a restore is running for the specified database, otherwise false.
IsOwnedBy checks if the child object is owned by the parent object.
ListDatabaseClusterBackups returns a list of DatabaseClusterBackup objects for the DatabaseCluster with the specified name and namespace.
ListDatabaseClusterRestores lists the DatabaseClusterRestores for the database specified by the name and namespace.
PITRBucketName returns the name of the bucket for the point-in-time recovery backups.
PITRStorageName returns the name of the storage for the point-in-time recovery backups.
ReconcileDBRestoreFromDataSource reconciles the DatabaseClusterRestore object based on the DataSource field of the DatabaseCluster.
StatusAsPlainTextOrEmptyString returns the status as a plain text string or an empty string.
UpdateSecretData updates the data of a secret.
ValidatePitrRestoreSpec validates the PITR restore spec.
# Constants
ClusterTypeEKS represents the EKS cluster type.
ClusterTypeMinikube represents the Minikube cluster type.
DBBackupCleanupFinalizer is the finalizer for cleaning up DatabaseClusterBackup.
DBClusterBackupDBClusterNameField is the field in the DatabaseClusterBackup CR.
DBClusterRestoreDBClusterNameField is the field in the DatabaseClusterRestore CR.
DefaultPMMClientImage is the default image for PMM client.
Everest ...
EverestSecretsPrefix is the prefix for secrets created by Everest.
ForegroundDeletionFinalizer is the finalizer that ensures foreground deletion for the resource.
LabelBackupStorageName is the label for backup storage name.
LabelKubernetesManagedBy is a common label that indicates the resource is managed by a specific operator.
PerconaPGClusterKind is the kind for Percona PostgreSQL.
PerconaServerMongoDBKind is the kind for Percona Server for MongoDB.
PerconaXtraDBClusterKind is the kind for Percona XtraDB Cluster.
PerconaXtraDBClusterRestoreKind is the kind for Percona XtraDB Cluster restore.
PGAPIGroup is the API group for Percona PostgreSQL.
PGDeploymentName is the name of the Percona PostgreSQL operator deployment.
PSMDBAPIGroup is the API group for Percona Server for MongoDB.
PSMDBDeploymentName is the name of the Percona Server for MongoDB operator deployment.
PXCAPIGroup is the API group for Percona XtraDB Cluster.
PXCDeploymentName is the name of the Percona XtraDB Cluster operator deployment.
TopologyKeyHostname is the topology key for hostname.
UpstreamClusterCleanupFinalizer is the finalizer for cleaning up the upstream cluster.
# Variables
DefaultNamespaceFilter is the default namespace filter.
ErrPitrEmptyDate is an error for missing PITR date.
ErrPitrTypeIsNotSupported is an error for unsupported PITR type.
ErrPitrTypeLatest is an error for 'latest' being an unsupported PITR type.
ErrPSMDBOneStorageRestriction is an error for using more than one storage for psmdb clusters.
ExposeAnnotationsMap is a map of annotations needed for exposing the database cluster.
PGGVK is the GroupVersionKind for Percona PostgreSQL.
PSMDBGVK is the GroupVersionKind for Percona Server for MongoDB.
PXCGVK is the GroupVersionKind for Percona XtraDB Cluster.
PXCRGVK is the GroupVersionKind for Percona PostgreSQL.
# Type aliases
ClusterType represents the type of the cluster.