mysqlbackup

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Finalizer mysqlbackups CR delete mark
	Finalizer = "mysqlbackup.rds.hakurei.cn/v1alpha1"
)

Variables

This section is empty.

Functions

func BuildAnnotations added in v0.0.2

func BuildAnnotations(cr *rdsv1alpha1.MysqlBackup) (annotations map[string]string)

func BuildLabels

func BuildLabels(cr *rdsv1alpha1.MysqlBackup) (labels map[string]string)

func BuildScriptsConfigMapName

func BuildScriptsConfigMapName(cr *rdsv1alpha1.MysqlBackup) string

func BuildSecret

func BuildSecret(cr *rdsv1alpha1.MysqlBackup) (secret *corev1.Secret)

Types

type CronJobBuilder

type CronJobBuilder struct {
	CR *rdsv1alpha1.MysqlBackup
}

func (*CronJobBuilder) BuildCronJob

func (t *CronJobBuilder) BuildCronJob() (job *batchv1.CronJob, err error)

type MysqlBackupReconciler

type MysqlBackupReconciler struct {
	client.Client
	Scheme     *runtime.Scheme
	RestConfig *rest.Config
}

MysqlBackupReconciler reconciles a MysqlBackup object

func (*MysqlBackupReconciler) Reconcile

func (t *MysqlBackupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (r ctrl.Result, err error)

func (*MysqlBackupReconciler) SetupWithManager

func (t *MysqlBackupReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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