Skip to content

Commit 7d7f77d

Browse files
committed
fix panic in catalog operator
Signed-off-by: akihikokuroda <[email protected]>
1 parent 313a0f2 commit 7d7f77d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/operators/catalog/operator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ func (o *Operator) syncInstallPlans(obj interface{}) (syncError error) {
16111611

16121612
// Attempt to unpack bundles before installing
16131613
// Note: This should probably use the attenuated client to prevent users from resolving resources they otherwise don't have access to.
1614-
if len(plan.Status.BundleLookups) > 0 {
1614+
if plan.Status.BundleLookups != nil && len(plan.Status.BundleLookups) > 0 {
16151615
unpacked, out, err := o.unpackBundles(plan)
16161616
if err != nil {
16171617
// Retry sync if non-fatal error

0 commit comments

Comments
 (0)