Skip to content

Commit

Permalink
Allow reconciler retry downloading bundle as the secret may not be in…
Browse files Browse the repository at this point in the history
…jected immediately
  • Loading branch information
d8660091 committed Sep 14, 2023
1 parent c308454 commit 07721d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/bundle/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (m *bundleManager) ProcessBundleController(ctx context.Context, pbc *api.Pa
return fmt.Errorf("updating %s status to %s: %s", pbc.Name, pbc.Status.State, err)
}
}
return nil
return err
}

allBundles, err := m.bundleClient.GetBundleList(ctx)
Expand Down
2 changes: 1 addition & 1 deletion pkg/bundle/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func TestBundleManager_ProcessBundleController(t *testing.T) {

err := bm.ProcessBundleController(ctx, pbc)

assert.NoError(t, err)
assert.Error(t, err)
assert.Equal(t, api.BundleControllerStateDisconnected, pbc.Status.State)
})

Expand Down

0 comments on commit 07721d0

Please sign in to comment.