Skip to content

Commit

Permalink
bundle: remove rook as a dependency to allow upgrades from 4.15 to 4.16
Browse files Browse the repository at this point in the history
In older clusters, upgrading the odf channel from 4.15 to 4.16 tries to
bring the rook-operator, leading to conflicts with ocs-operator 4.15,
which already contains all Rook components in its 4.15 CSV. This
conflict results in upgrade failures.

To address this issue, the Rook dependency is removed from the
odf-operator and added to the ocs-operator. This solution ensures a
smooth upgrade process, as changing the ocs-operator channel will now
bring Rook along with ocs-operator 4.16 without encountering conflicts.

This commit should be reverted in 4.17 as 4.16 will feature different
CSVs. In 4.17, reintroducing Rook as a dependency in odf should
facilitate smooth installations and upgrades.

Signed-off-by: Nitin Goyal <[email protected]>
  • Loading branch information
iamniting committed Apr 17, 2024
1 parent 08bf498 commit 8907814
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions bundle/metadata/dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ dependencies:
value:
packageName: ocs-operator
version: ">=4.15.0 <=4.16.0"
- type: olm.package
value:
packageName: rook-ceph-operator
version: ">=4.15.0 <=4.16.0"
- type: olm.package
value:
packageName: ocs-client-operator
Expand Down
4 changes: 2 additions & 2 deletions controllers/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func GetStorageClusterSubscriptions() []*operatorv1alpha1.Subscription {
},
}

rookSubscription := &operatorv1alpha1.Subscription{
_ = &operatorv1alpha1.Subscription{
ObjectMeta: metav1.ObjectMeta{
Name: RookSubscriptionName,
Namespace: OperatorNamespace,
Expand Down Expand Up @@ -466,7 +466,7 @@ func GetStorageClusterSubscriptions() []*operatorv1alpha1.Subscription {
},
}

return []*operatorv1alpha1.Subscription{ocsSubscription, rookSubscription, noobaaSubscription,
return []*operatorv1alpha1.Subscription{ocsSubscription, noobaaSubscription,
csiAddonsSubscription, ocsClientSubscription, prometheusSubscription}
}

Expand Down

0 comments on commit 8907814

Please sign in to comment.