Skip to content

Commit

Permalink
branch planner is not checking for both PostPlanningWebhookFailedReas…
Browse files Browse the repository at this point in the history
…on and TFExecInitFailedReason for failing PR (#1271)

Signed-off-by: Poodle <52315689+raz-bn@users.noreply.github.com>
  • Loading branch information
raz-bn authored Apr 6, 2024
1 parent 600e9e0 commit 8aacbc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/informer/branch-planner/informer.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (i *Informer) updateHandler(oldObj, newObj interface{}) {
ctx := context.Background()

for _, condition := range new.Status.Conditions {
if condition.Reason == infrav1.TFExecInitFailedReason {
if condition.Reason == infrav1.TFExecInitFailedReason || condition.Reason == infrav1.PostPlanningWebhookFailedReason {
if ann := new.GetAnnotations(); ann != nil && ann[config.AnnotationErrorRevision] == new.Status.LastAttemptedRevision {
break
}
Expand Down

0 comments on commit 8aacbc6

Please sign in to comment.