etcd

package
v2.25.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BackupConfigNameLabelKey is the label key which should be used to name the BackupConfig a job belongs to.
	BackupConfigNameLabelKey = "backupConfig"
	// SharedVolumeName is the name of the `emptyDir` volume the initContainer
	// will write the backup to.
	SharedVolumeName = "etcd-backup"
	// clusterEnvVarKey defines the environment variable key for the cluster name.
	AccessKeyIdEnvVarKey = "ACCESS_KEY_ID"
	// SecretAccessKeyEnvVarKey defines the environment variable key for the backup credentials secret access key.
	SecretAccessKeyEnvVarKey = "SECRET_ACCESS_KEY"

	// BackupJobLabel defines the label we use on all backup jobs.
	BackupJobLabel = "kubermatic-etcd-backup"

	// BackupToCreateEnvVarKey defines the environment variable key for the name of the backup to create.
	BackupToCreateEnvVarKey = "BACKUP_TO_CREATE"
	// BackupToDeleteEnvVarKey defines the environment variable key for the name of the backup to delete.
	BackupToDeleteEnvVarKey = "BACKUP_TO_DELETE"
	// BackupScheduleEnvVarKey defines the environment variable key for the backup schedule.
	BackupScheduleEnvVarKey = "BACKUP_SCHEDULE"
	// BackupKeepCountEnvVarKey defines the environment variable key for the number of backups to keep.
	BackupKeepCountEnvVarKey = "BACKUP_KEEP_COUNT"
	// backupConfigEnvVarKey defines the environment variable key for the name of the backup configuration resource.
	BackupConfigEnvVarKey = "BACKUP_CONFIG"
	// AccessKeyIdEnvVarKey defines the environment variable key for the backup credentials access key id.
	BucketNameEnvVarKey = "BUCKET_NAME"
	// BackupEndpointEnvVarKey defines the environment variable key for the backup endpoint.
	BackupEndpointEnvVarKey = "ENDPOINT"
	// BackupInsecureEnvVarKey defines the environment variable key for a boolean that tells whether the
	// configured endpoint uses HTTPS ("false") or HTTP ("true").
	BackupInsecureEnvVarKey = "INSECURE"
)

Variables

This section is empty.

Functions

func BackupDeleteJob

func BackupDeleteJob(data etcdBackupData, config *kubermaticv1.EtcdBackupConfig, status *kubermaticv1.BackupStatus) *batchv1.Job

func BackupJob

func BackupJob(data etcdBackupData, config *kubermaticv1.EtcdBackupConfig, status *kubermaticv1.BackupStatus) *batchv1.Job

func GenSecretEnvVar

func GenSecretEnvVar(name, key string, destination *kubermaticv1.BackupDestination) corev1.EnvVar

func GetEtcdBackupSecretName

func GetEtcdBackupSecretName(cluster *kubermaticv1.Cluster) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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