controllers

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkerContainerName    = "worker"
	WorkerConfigVolumeName = "config"
	WorkerConfigMountPath  = "/etc/worker"
)

Variables

View Source
var (
	WorkerConfigFilePath = filepath.Join(WorkerConfigMountPath, "plan.json")
)

Functions

func UpdateCronJobSpec

func UpdateCronJobSpec(cronJob *batchv1.CronJob, secretRef *corev1.ObjectReference, schedule string, activeDeadlineSeconds int64, image string, env []corev1.EnvVar, subcmd string,
	volumes []corev1.Volume,
	volumeMounts []corev1.VolumeMount) error

Types

type BackupPlanReconciler

type BackupPlanReconciler struct {
	client.Client
	Log                logr.Logger
	Scheme             *runtime.Scheme
	Recorder           record.EventRecorder
	DefaultDestination *backupv1alpha1.Destination // TODO: to implement
	WorkerImage        string
	Type               backupv1alpha1.BackupPlan
}

BackupPlanReconciler reconciles BackupPlan objects

func (*BackupPlanReconciler) Reconcile

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

func (*BackupPlanReconciler) SetupWithManager

func (r *BackupPlanReconciler) SetupWithManager(mgr ctrl.Manager, name string) error

Jump to

Keyboard shortcuts

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