naming

package
v2.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// AnnotationPGBackrestBackup is the annotation that is added to a PerconaPGCluster to initiate a manual
	// backup.  The value of the annotation will be a unique identifier for a backup Job (e.g. a
	// timestamp), which will be stored in the PostgresCluster status to properly track completion
	// of the Job.  Also used to annotate the backup Job itself as needed to identify the backup
	// ID associated with a specific manual backup Job.
	AnnotationPGBackrestBackup = PrefixPerconaPGV2 + "pgbackrest-backup"

	// AnnotationPGBackrestBackupJobName is the annotation that is added to a PerconaPGClusterBackup.
	// The value of the annotation will be a name of an existing backup job
	AnnotationPGBackrestBackupJobName = AnnotationPGBackrestBackup + "-job-name"

	// AnnotationPGBackrestBackupJobType is the annotation that is added to a PerconaPGClusterBackup.
	// The value of the annotation will be a type of a backup (e.g. "manual" or "replica-create).
	AnnotationPGBackrestBackupJobType = AnnotationPGBackrestBackup + "-job-type"

	// AnnotationPGBackRestRestore is the annotation that is added to a PerconaPGCluster to initiate an in-place
	// restore.  The value of the annotation will be a unique identfier for a restore Job (e.g. a
	// timestamp), which will be stored in the PostgresCluster status to properly track completion
	// of the Job.
	AnnotationPGBackRestRestore = PrefixPerconaPGV2 + "pgbackrest-restore"

	// AnnotationPMMSecretHash is the annotation that is added to instance annotations to
	// rollout restart PG pods in case PMM credentials are rotated.
	AnnotationPMMSecretHash = PrefixPerconaPGV2 + "pmm-secret-hash"

	// AnnotationMonitorUserSecretHash is the annotation that is added to instance annotations to
	// rollout restart PG pods in case monitor user password is changed.
	AnnotationMonitorUserSecretHash = PrefixPerconaPGV2 + "monitor-user-secret-hash"

	// AnnotationEnvVarsSecretHash is the annotation that is added to
	// rollout restart pods in case envFrom secret is changed.
	AnnotationEnvVarsSecretHash = PrefixPerconaPGV2 + "env-secret-config-hash"

	// AnnotationBackupInProgress is the annotation that is added to PerconaPGCluster to
	// indicate that backup is in progress.
	AnnotationBackupInProgress = PrefixPerconaPGV2 + "backup-in-progress"

	// AnnotationClusterBootstrapRestore is the annotation that is added to PerconaPGRestore to
	// indicate that it is a cluster bootstrap restore.
	AnnotationClusterBootstrapRestore = PrefixPerconaPGV2 + "cluster-bootstrap-restore"

	AnnotationPatroniVersion = PrefixPerconaPGV2 + "patroni-version"

	// Special annotation to disable `patroni-version-check` by overriding the patroni version with a custom value.
	AnnotationCustomPatroniVersion = PrefixPerconaPGV2 + "custom-patroni-version"
)
View Source
const (
	FinalizerDeletePVC     = PrefixPercona + "delete-pvc"
	FinalizerDeleteSSL     = PrefixPercona + "delete-ssl"
	FinalizerStopWatchers  = PrefixPerconaInternal + "stop-watchers" //nolint:gosec
	FinalizerDeleteBackups = PrefixPercona + "delete-backups"

	FinalizerStopWatchersDeprecated = PrefixPercona + "stop-watchers" //nolint:gosec
)

PerconaPGCluster finalizers

View Source
const (
	CrunchyBinVolumeName = "crunchy-bin"
	CrunchyBinVolumePath = "/opt/crunchy"
)
View Source
const (
	PrefixPercona         = "percona.com/"
	PrefixPerconaInternal = "internal." + PrefixPercona
	PrefixPerconaPGV2     = "pgv2.percona.com/"
	PrefixCrunchy         = "postgres-operator.crunchydata.com/"
)
View Source
const (
	ConditionClusterIsReadyForBackup = "ReadyForBackup"
)
View Source
const (
	ContainerPatroniVersionCheck = "patroni-version-check"
)
View Source
const (
	FinalizerDeleteBackup = PrefixPerconaInternal + "delete-backup" //nolint:gosec
)

PerconaPGBackup finalizers

View Source
const (
	FinalizerDeleteRestore = PrefixPerconaInternal + "delete-restore" //nolint:gosec
)

PerconaPGRestore finalizers

View Source
const (
	FinalizerKeepJob = PrefixPerconaInternal + "keep-job" //nolint:gosec
)

PerconaPGBackup job finalizers

View Source
const (
	LabelOperatorVersion = PrefixPerconaPGV2 + "version"
)

Variables

This section is empty.

Functions

func ToCrunchyAnnotation

func ToCrunchyAnnotation(annotation string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL