Documentation ¶
Index ¶
- Constants
- func BackupDeleteJob(data etcdBackupData, config *kubermaticv1.EtcdBackupConfig, ...) *batchv1.Job
- func BackupJob(data etcdBackupData, config *kubermaticv1.EtcdBackupConfig, ...) *batchv1.Job
- func GenSecretEnvVar(name, key string, destination *kubermaticv1.BackupDestination) corev1.EnvVar
- func GetEtcdBackupSecretName(cluster *kubermaticv1.Cluster) string
Constants ¶
View Source
const ( // BackupConfigNameLabelKey is the label key which should be used to name the BackupConfig a job belongs to. BackupConfigNameLabelKey = "backupConfig" // 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.
Click to show internal directories.
Click to hide internal directories.