Skip to content

Commit

Permalink
Separate stanza for releasing pods
Browse files Browse the repository at this point in the history
  • Loading branch information
jveski committed Dec 7, 2023
1 parent a5b7614 commit b8162bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/testutil/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,10 @@ func NewPodController(t testing.TB, mgr ctrl.Manager, fn func(*apiv1.Composition
})
return reconcile.Result{}, err
}
}

// Mark the pod as terminated to signal that synthesis is complete
// Mark the pod as terminated to signal that synthesis is complete
for _, pod := range pods.Items {
if len(pod.Status.ContainerStatuses) == 0 {
pod.Status.ContainerStatuses = []corev1.ContainerStatus{{
State: corev1.ContainerState{
Expand Down

0 comments on commit b8162bb

Please sign in to comment.