Skip to content

Commit

Permalink
Update related TODO in ClusterExtension controller
Browse files Browse the repository at this point in the history
Signed-off-by: Brett Tofel <btofel@redhat.com>
  • Loading branch information
bentito committed Jul 3, 2024
1 parent b6a1109 commit e0ff96d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions internal/controllers/clusterextension_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ func (r *ClusterExtensionReconciler) reconcile(ctx context.Context, ext *ocv1alp

return ctrl.Result{}, nil
case rukpaksource.StateUnpacked:
// TODO: Add finalizer to clean the stored bundles, after https://github.com/operator-framework/rukpak/pull/897
// merges.
// TODO: https://github.com/operator-framework/rukpak/pull/897 merged, add finalizer to clean the stored bundles
if err := r.Storage.Store(ctx, ext, unpackResult.Bundle); err != nil {
setStatusUnpackFailed(ext, err.Error())
return ctrl.Result{}, err
Expand Down
1 change: 0 additions & 1 deletion internal/controllers/common_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ func setStatusUnpackFailed(ext *ocv1alpha1.ClusterExtension, message string) {
})
}

// TODO: verify if we need to update the installBundle status or leave it as is.
func setStatusInstallFalseUnpackFailed(ext *ocv1alpha1.ClusterExtension, message string) {
ext.Status.InstalledBundle = nil
apimeta.SetStatusCondition(&ext.Status.Conditions, metav1.Condition{
Expand Down

0 comments on commit e0ff96d

Please sign in to comment.