Documentation ¶
Index ¶
- Constants
- func BuildAnnotations(cr *rdsv1alpha1.MysqlBackup) (annotations map[string]string)
- func BuildLabels(cr *rdsv1alpha1.MysqlBackup) (labels map[string]string)
- func BuildScriptsConfigMapName(cr *rdsv1alpha1.MysqlBackup) string
- func BuildSecret(cr *rdsv1alpha1.MysqlBackup) (secret *corev1.Secret)
- type CronJobBuilder
- type MysqlBackupReconciler
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 ¶
MysqlBackupReconciler reconciles a MysqlBackup object
func (*MysqlBackupReconciler) SetupWithManager ¶
func (t *MysqlBackupReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.