Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultBackupPolicyAnnotationKey specifies the default backup policy. DefaultBackupPolicyAnnotationKey = "dataprotection.kubeblocks.io/is-default-policy" // DefaultBackupPolicyTemplateAnnotationKey specifies the default backup policy template. DefaultBackupPolicyTemplateAnnotationKey = "dataprotection.kubeblocks.io/is-default-policy-template" // DefaultBackupRepoAnnotationKey specifies the default backup repo. DefaultBackupRepoAnnotationKey = "dataprotection.kubeblocks.io/is-default-repo" // ReconfigureRefAnnotationKey specifies the reconfigure ref. ReconfigureRefAnnotationKey = "dataprotection.kubeblocks.io/reconfigure-ref" )
annotation keys
View Source
const ( // ClusterUIDLabelKey specifies the cluster UID label key. ClusterUIDLabelKey = "dataprotection.kubeblocks.io/cluster-uid" // BackupNameLabelKey specifies the backup name label key. BackupNameLabelKey = "dataprotection.kubeblocks.io/backup-name" // BackupScheduleLabelKey specifies the backup schedule label key. BackupScheduleLabelKey = "dataprotection.kubeblocks.io/backup-schedule" // BackupPolicyLabelKey specifies the backup policy label key. BackupPolicyLabelKey = "dataprotection.kubeblocks.io/backup-policy" // BackupMethodLabelKey specifies the backup method label key. BackupMethodLabelKey = "dataprotection.kubeblocks.io/backup-method" // BackupTypeLabelKey specifies the backup type label key. BackupTypeLabelKey = "dataprotection.kubeblocks.io/backup-type" // AutoBackupLabelKey specifies the auto backup label key. AutoBackupLabelKey = "dataprotection.kubeblocks.io/autobackup" // BackupTargetPodLabelKey specifies the backup target pod label key. BackupTargetPodLabelKey = "dataprotection.kubeblocks.io/target-pod-name" )
label keys
View Source
const ( // DPDBHost database host for dataProtection DPDBHost = "DP_DB_HOST" // DPDBUser database user for dataProtection DPDBUser = "DP_DB_USER" // DPDBPassword database password for dataProtection DPDBPassword = "DP_DB_PASSWORD" // DPDBEndpoint database endpoint for dataProtection DPDBEndpoint = "DP_DB_ENDPOINT" // DPDBPort database port for dataProtection DPDBPort = "DP_DB_PORT" // DPTargetPodName the target pod name DPTargetPodName = "DP_TARGET_POD_NAME" // DPBackupBasePath the base path for backup data in the storage DPBackupBasePath = "DP_BACKUP_BASE_PATH" // DPBackupName backup CR name DPBackupName = "DP_BACKUP_NAME" // DPTTL backup time to live, reference the backup.spec.retentionPeriod DPTTL = "DP_TTL" // DPCheckInterval check interval for sync backup progress DPCheckInterval = "DP_CHECK_INTERVAL" // DPBackupInfoFile the file name which retains the backup.status info DPBackupInfoFile = "DP_BACKUP_INFO_FILE" // DPTimeFormat golang time format string DPTimeFormat = "DP_TIME_FORMAT" // DPBackupStopTime backup stop time DPBackupStopTime = "DP_BACKUP_STOP_TIME" // backup stop time // DPDatasafedLocalBackendPath force datasafed to use local backend with the path DPDatasafedLocalBackendPath = "DP_DATASAFED_LOCAL_BACKEND_PATH" // DPDatasafedBinPath the path containing the datasafed binary DPDatasafedBinPath = "DP_DATASAFED_BIN_PATH" )
env names
View Source
const ( RestoreKind = "Restore" DataprotectionAPIGroup = "dataprotection.kubeblocks.io" )
View Source
const (
// CfgKeyGCFrequencySeconds is the key of gc frequency, its unit is second
CfgKeyGCFrequencySeconds = "GC_FREQUENCY_SECONDS"
)
config keys used in viper
View Source
const (
// DataProtectionFinalizerName is the name of our custom finalizer
DataProtectionFinalizerName = "dataprotection.kubeblocks.io/finalizer"
)
View Source
const (
// DefaultGCFrequencySeconds is the default gc frequency, its unit is second
DefaultGCFrequencySeconds = 60 * 60
)
config default values
Variables ¶
View Source
var ( // DefaultBackOffLimit is the default backoff limit for jobs. DefaultBackOffLimit = int32(3) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.