Skip to content
Prev Previous commit
Next Next commit
remove user managed condition
Signed-off-by: Ben Luzarraga <[email protected]>
  • Loading branch information
bluzarraga committed Feb 4, 2025
commit 5a04795183d2fb998b48967684ab6a1910a3c1ab
12 changes: 6 additions & 6 deletions controllers/operandrequestnoolm/reconcile_operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,12 @@ func (r *Reconciler) uninstallOperatorsAndOperands(ctx context.Context, operandN
return nil
}

if _, ok := deploy.Labels[constant.OpreqLabel]; !ok {
if !op.UserManaged {
klog.V(1).Infof("Deployment %s in the namespace %s isn't created by ODLM and isn't user managed", deploy.Name, deploy.Namespace)
return nil
}
}
// if _, ok := deploy.Labels[constant.OpreqLabel]; !ok {
// if !op.UserManaged {
// klog.V(1).Infof("Deployment %s in the namespace %s isn't created by ODLM and isn't user managed", deploy.Name, deploy.Namespace)
// return nil
// }
// }

cm, err := r.GetOpReqCM(ctx, op.Name, deploy.Namespace, registryInstance.Namespace, op.PackageName)
if cm != nil && err == nil {
Expand Down