Documentation
¶
Overview ¶
Package consts provides constants used across the operator.
Package consts provides constants used across the operator.
Package consts provides constants used across the operator.
Package consts provides constants used across the operator.
Index ¶
Constants ¶
View Source
const ( // EverestAnnotationPrefix is the prefix for all Everest-related annotations. EverestAnnotationPrefix = "everest.percona.com/" // PauseReconcileAnnotation is the annotation used to pause reconciliation of a resource. PauseReconcileAnnotation = EverestAnnotationPrefix + "reconcile-paused" // PauseReconcileAnnotationValueTrue is the value for the PauseReconcileAnnotation to indicate that reconciliation is paused. PauseReconcileAnnotationValueTrue = "true" // RestartAnnotation is the annotation used to trigger a restart of a database cluster. RestartAnnotation = EverestAnnotationPrefix + "restart" // ManagedByDataImportAnnotation is the annotation used to indicate that a resource is managed by a data import process. ManagedByDataImportAnnotation = EverestAnnotationPrefix + "managed-by-data-import" // ManagedByDataImportAnnotationValueTrue is the value for the ManagedByDataImportAnnotation to indicate that the resource is managed by data import. ManagedByDataImportAnnotationValueTrue = "true" )
View Source
const ( // Everest ... Everest = "everest" // DBClusterRestoreDBClusterNameField is the field in the DatabaseClusterRestore CR. DBClusterRestoreDBClusterNameField = ".spec.dbClusterName" // DBClusterBackupDBClusterNameField is the field in the DatabaseClusterBackup and DatabaseClusterRestore CRs. DBClusterBackupDBClusterNameField = ".spec.dbClusterName" // DBClusterBackupBackupStorageNameField is the field in the DatabaseClusterBackup CR. DBClusterBackupBackupStorageNameField = ".spec.backupStorageName" // DataSourceBackupStorageNameField is the field in the DatabaseClusterBackup and DatabaseClusterRestore CRs. DataSourceBackupStorageNameField = ".spec.dataSource.backupSource.backupStorageName" // TopologyKeyHostname is the topology key for hostname. TopologyKeyHostname = "kubernetes.io/hostname" // PXCDeploymentName is the name of the Percona XtraDB Cluster operator deployment. PXCDeploymentName = "percona-xtradb-cluster-operator" // PSMDBDeploymentName is the name of the Percona Server for MongoDB operator deployment. PSMDBDeploymentName = "percona-server-mongodb-operator" // PGDeploymentName is the name of the Percona PostgreSQL operator deployment. PGDeploymentName = "percona-postgresql-operator" // PXCAPIGroup is the API group for Percona XtraDB Cluster. PXCAPIGroup = "pxc.percona.com" // PSMDBAPIGroup is the API group for Percona Server for MongoDB. PSMDBAPIGroup = "psmdb.percona.com" // PGAPIGroup is the API group for Percona PostgreSQL. PGAPIGroup = "pgv2.percona.com" // PerconaXtraDBClusterKind is the kind for Percona XtraDB Cluster. PerconaXtraDBClusterKind = "PerconaXtraDBCluster" // PerconaServerMongoDBKind is the kind for Percona Server for MongoDB. PerconaServerMongoDBKind = "PerconaServerMongoDB" // PerconaPGClusterKind is the kind for Percona PostgreSQL. PerconaPGClusterKind = "PerconaPGCluster" // PerconaXtraDBClusterRestoreKind is the kind for Percona XtraDB Cluster restore. PerconaXtraDBClusterRestoreKind = "PerconaXtraDBClusterRestore" // LoadBalancerConfigKind is the kind for load balancer configs. LoadBalancerConfigKind = "LoadBalancerConfig" // DatabaseClusterKind is the kind for DatabaseClusterKind. DatabaseClusterKind = "DatabaseCluster" // SplitHorizonDNSConfigKind is the kind for SplitHorizonDNSConfig. SplitHorizonDNSConfigKind = "SplitHorizonDNSConfig" // ClusterTypeEKS represents the EKS cluster type. ClusterTypeEKS ClusterType = "eks" // ClusterTypeMinikube represents the Minikube cluster type. ClusterTypeMinikube ClusterType = "minikube" // LabelKubernetesManagedBy is a common label that indicates the resource is managed by a specific operator. LabelKubernetesManagedBy = "app.kubernetes.io/managed-by" // EverestSecretsPrefix is the prefix for secrets created by Everest. EverestSecretsPrefix = "everest-secrets-" )
View Source
const ( // PerconaFinalizerPrefix is the prefix for all Percona operator finalizers. // Deprecated: Use EverestFinalizerPrefix instead. PerconaFinalizerPrefix = "percona.com/" // DeletePXCBackupFinalizer is the finalizer used to ensure proper cleanup of PXC Cluster backups. DeletePXCBackupFinalizer = PerconaFinalizerPrefix + "delete-backup" // DeletePSMDBBackupFinalizer is the finalizer used to ensure proper cleanup of PSMDB Cluster backups. DeletePSMDBBackupFinalizer = PerconaFinalizerPrefix + "delete-backup" // EverestFinalizerPrefix is the prefix for all Everest operator finalizers. EverestFinalizerPrefix = "everest.percona.com/" // ForegroundDeletionFinalizer is the finalizer that ensures foreground deletion for the resource. ForegroundDeletionFinalizer = "foregroundDeletion" // DBBackupCleanupFinalizer is the finalizer for cleaning up DatabaseClusterBackup. // Deprecated: We keep this for backward compatibility. DBBackupCleanupFinalizer = EverestFinalizerPrefix + "dbb-cleanup" // UpstreamClusterCleanupFinalizer is the finalizer for cleaning up the upstream cluster. UpstreamClusterCleanupFinalizer = EverestFinalizerPrefix + "upstream-cluster-cleanup" // DataImportJobRBACCleanupFinalizer is a finalizer that is used to clean up RBAC resources. // This finalizer ensures that the Kubernetes Job is deleted only after the RBAC resources are cleaned up. // If deletion of resources does not happen in this order, the Job may not have sufficient permissions to perform any cleanup. DataImportJobRBACCleanupFinalizer = EverestFinalizerPrefix + "rbac-cleanup" // MonitoringConfigSecretCleanupFinalizer is a finalizer that is used to clean up secrets created by the monitoring configuration. MonitoringConfigSecretCleanupFinalizer = EverestFinalizerPrefix + "cleanup-secrets" // MonitoringConfigVMAgentFinalizer is a finalizer that is used to clean up VM Agent resources created by the monitoring configuration. MonitoringConfigVMAgentFinalizer = EverestFinalizerPrefix + "vmagent" // EngineFeaturesSplitHorizonDNSConfigSecretCleanupFinalizer is a finalizer that is used to clean up // secrets created by the SplitHorizonDNSConfig configuration. EngineFeaturesSplitHorizonDNSConfigSecretCleanupFinalizer = EverestFinalizerPrefix + "cleanup-secrets" )
View Source
const ( // EverestLabelPrefix is the prefix for all Everest-related labels. EverestLabelPrefix = "everest.percona.com/" // BackupStorageNameLabel is the label for backup storage name. BackupStorageNameLabel = "percona.com/backup-storage-name" // KubernetesManagedByLabel is a common label that indicates the resource is managed by a specific operator. KubernetesManagedByLabel = "app.kubernetes.io/managed-by" // DatabaseClusterNameLabel indicates the name of the database cluster. DatabaseClusterNameLabel = "clusterName" // MonitoringConfigNameLabel indicates the name of the monitoring configuration. MonitoringConfigNameLabel = "monitoringConfigName" // PodSchedulingPolicyNameLabel indicates the name of the pod scheduling policy. PodSchedulingPolicyNameLabel = "podSchedulingPolicyName" // BackupStorageNameLabelTmpl is a template for the backup storage name label. BackupStorageNameLabelTmpl = "backupStorage-%s" // BackupStorageLabelValue is the value for the backup storage label indicating it is used. BackupStorageLabelValue = "used" // DataImportJobRefNameLabel is a label used to identify the name of the DataImportJob that owns a cluster-wide resource. // This label is used to mark ownership on cluster-wide resources by the DataImportJob. // This is needed because DataImportJob cannot own cluster-wide resources like ClusterRole and ClusterRoleBinding, // as Kubernetes does not allow cluster-scoped resources to be owned by namespace-scoped resources. DataImportJobRefNameLabel = EverestLabelPrefix + "data-import-job-ref-name" // DataImportJobRefNamespaceLabel is a label used to identify the namespace of the DataImportJob that owns a cluster-wide resource. // This label is used to mark ownership on cluster-wide resources by the DataImportJob. // This is needed because DataImportJob cannot own cluster-wide resources like ClusterRole and ClusterRoleBinding, // as Kubernetes does not allow cluster-scoped resources to be owned by namespace-scoped resources. DataImportJobRefNamespaceLabel = EverestLabelPrefix + "data-import-job-ref-namespace" // MonitoringConfigRefNameLabel is a label used to identify the name of the monitoring configuration that owns a resource. MonitoringConfigRefNameLabel = EverestLabelPrefix + "monitoring-config-ref-name" // MonitoringConfigRefNamespaceLabel is a label used to identify the namespace of the monitoring configuration that owns a resource. MonitoringConfigRefNamespaceLabel = EverestLabelPrefix + "monitoring-config-ref-namespace" )
Variables ¶
View Source
var Version string //nolint:gochecknoglobals
Version is a component version e.g. v1.9.0-rc1.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.