Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blampe committed Nov 26, 2024
1 parent 60b399d commit 8c1ae63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/internal/controller/pulumi/stack_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8c1ae63

Please sign in to comment.