Skip to content

Commit 813f844

Browse files
committed
fix(gc): clean up copied csvs that have incorrect operatorgroups
1 parent a902029 commit 813f844

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/controller/operators/olm/operator.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,11 @@ func (a *Operator) removeDanglingChildCSVs(csv *v1alpha1.ClusterServiceVersion)
910910
}
911911
}
912912

913+
if parent.GetNamespace() == csv.GetNamespace() {
914+
logger.Debug("deleting copied CSV since it has incorrect parent annotations")
915+
return a.deleteChild(csv, logger)
916+
}
917+
913918
return nil
914919
}
915920

0 commit comments

Comments
 (0)