From 93c24cea10034ec9545eacf97546fd6266b515c4 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Thu, 27 Jul 2023 18:54:01 -0400 Subject: [PATCH] Update controllers/mover/restic/builder.go Co-authored-by: Thomas <9749173+uhthomas@users.noreply.github.com> Signed-off-by: Devin Buhl --- controllers/mover/restic/builder.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controllers/mover/restic/builder.go b/controllers/mover/restic/builder.go index e12c70eba..f515591ea 100644 --- a/controllers/mover/restic/builder.go +++ b/controllers/mover/restic/builder.go @@ -119,7 +119,10 @@ func (rb *Builder) FromSource(client client.Client, logger logr.Logger, saHandler := utils.NewSAHandler(client, source, isSource, privileged, source.Spec.Restic.MoverServiceAccount) - isImmediate := source.Spec.Immediate == nil + isImmediate := true + if source.Spec.Immediate != nil { + isImmediate = *source.Spec.Immediate + } return &Mover{ client: client,