backup

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const AgentContainerName = "backup-agent"

AgentContainerName is the name of the backup agent container

View Source
const DefaultS3SecretName = "percona-server-mongodb-backup-s3"

DefaultS3SecretName is the default name of the AWS S3 credentials secret

View Source
const DefaultVersion = "0.2.1"

DefaultVersion is the default version of the percona/percona-backup-mongodb project

Variables

View Source
var DefaultCompressionType = v1alpha1.BackupCompressionGzip

DefaultCompressionType is the default backup data compression type

View Source
var DefaultDestinationType = v1alpha1.BackupDestinationS3

DefaultDestinationType is the default backup destination type

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is responsible for controlling backup configuration

func New

func New(client sdk.Client, psmdb *v1alpha1.PerconaServerMongoDB, serverVersion *v1alpha1.ServerVersion, usersSecret *corev1.Secret) *Controller

New returns a new Controller

func (*Controller) Create

func (c *Controller) Create(backup *v1alpha1.BackupTaskSpec) error

Create creates a backup task cronJob and updates the CR status

func (*Controller) Delete

func (c *Controller) Delete(backup *v1alpha1.BackupTaskSpec) error

Delete deletes a backup task cronJob and CR status

func (*Controller) DeleteBackupTasks

func (c *Controller) DeleteBackupTasks() error

DeleteBackupTasks deletes all cronJobs and CR statuses for backup tasks

func (*Controller) DeleteCoordinator

func (c *Controller) DeleteCoordinator() error

func (*Controller) EnsureBackupTasks

func (c *Controller) EnsureBackupTasks() error

EnsureBackupTasks ensures backup tasks are created if enabled, updated if they already exist or removed if they are disabled

func (*Controller) EnsureCoordinator

func (c *Controller) EnsureCoordinator() error

func (*Controller) NewAgentContainer

func (c *Controller) NewAgentContainer(replset *v1alpha1.ReplsetSpec) corev1.Container

func (*Controller) Update

func (c *Controller) Update(backup *v1alpha1.BackupTaskSpec) error

Update updates a backup task cronJob and updates the CR spec and status

Jump to

Keyboard shortcuts

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