From 8c1ae63f2280bb3e22475aeabd4699aa65ee2438 Mon Sep 17 00:00:00 2001 From: Bryce Lampe Date: Tue, 26 Nov 2024 15:00:24 -0800 Subject: [PATCH] fix tests --- operator/internal/controller/pulumi/stack_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/internal/controller/pulumi/stack_controller.go b/operator/internal/controller/pulumi/stack_controller.go index 218d9af4..e42a0883 100644 --- a/operator/internal/controller/pulumi/stack_controller.go +++ b/operator/internal/controller/pulumi/stack_controller.go @@ -761,7 +761,7 @@ func (r *StackReconciler) Reconcile(ctx context.Context, request ctrl.Request) ( requeueAfter = max(1*time.Second, time.Until(instance.Status.LastUpdate.LastResyncTime.Add(cooldown(instance)))) } // Schedule another poll if ContinueResyncOnCommitMatch is set or if we're tracking a branch. - if sess.stack.ContinueResyncOnCommitMatch || stack.Branch != "" { + if sess.stack.ContinueResyncOnCommitMatch || (stack.GitSource != nil && stack.GitSource.Branch != "") { requeueAfter = max(1*time.Second, time.Until(instance.Status.LastUpdate.LastResyncTime.Add(resyncFreq(instance)))) } if stack.GitSource != nil {