@@ -112,10 +112,10 @@ func (r *Reconciler) reconcileOperator(ctx context.Context, requestInstance *ope
112112 }
113113 } else {
114114 // Subscription existing and not managed by OperandRequest controller
115- klog .V (2 ).Infof ("Subscription %s in namespace %s isn't created by ODLM. Ignore update/delete it." , sub .Name , sub .Namespace )
115+ klog .V (1 ).Infof ("Subscription %s in namespace %s isn't created by ODLM. Ignore update/delete it." , sub .Name , sub .Namespace )
116116 }
117117 } else {
118- klog .V (2 ).Infof ("Operator %s not found in the registry %s/%s" , operand .Name , registryInstance .Namespace , registryInstance .Name )
118+ klog .V (1 ).Infof ("Operator %s not found in the OperandRegistry %s/%s" , operand .Name , registryInstance .Namespace , registryInstance .Name )
119119 requestInstance .SetNotFoundOperatorFromRegistryCondition (operand .Name , operatorv1alpha1 .ResourceTypeSub , corev1 .ConditionTrue )
120120 }
121121 }
@@ -199,7 +199,7 @@ func (r *Reconciler) updateSubscription(ctx context.Context, cr *operatorv1alpha
199199func (r * Reconciler ) deleteSubscription (ctx context.Context , operandName string , requestInstance * operatorv1alpha1.OperandRequest , registryInstance * operatorv1alpha1.OperandRegistry , configInstance * operatorv1alpha1.OperandConfig ) error {
200200 op := registryInstance .GetOperator (operandName )
201201 if op == nil {
202- klog .V ( 2 ). Infof ("Operand %s not found" , operandName )
202+ klog .Warningf ("Operand %s not found" , operandName )
203203 return nil
204204 }
205205
@@ -230,14 +230,14 @@ func (r *Reconciler) deleteSubscription(ctx context.Context, operandName string,
230230 }
231231
232232 if r .checkUninstallLabel (ctx , op .Name , namespace ) {
233- klog .V (2 ).Infof ("Operator %s has label operator.ibm.com/opreq-do-not-uninstall. Skip the uninstall" , op .Name )
233+ klog .V (1 ).Infof ("Operator %s has label operator.ibm.com/opreq-do-not-uninstall. Skip the uninstall" , op .Name )
234234 return nil
235235 }
236236
237237 klog .V (3 ).Info ("Set Deleting Condition in the operandRequest" )
238238 requestInstance .SetDeletingCondition (csv .Name , operatorv1alpha1 .ResourceTypeCsv , corev1 .ConditionTrue )
239239
240- klog .V (2 ).Infof ("Deleting the ClusterServiceVersion, Namespace: %s, Name: %s" , csv .Namespace , csv .Name )
240+ klog .V (1 ).Infof ("Deleting the ClusterServiceVersion, Namespace: %s, Name: %s" , csv .Namespace , csv .Name )
241241 if err := r .Delete (ctx , csv ); err != nil {
242242 requestInstance .SetDeletingCondition (csv .Name , operatorv1alpha1 .ResourceTypeCsv , corev1 .ConditionFalse )
243243 return errors .Wrap (err , "failed to delete the ClusterServiceVersion" )
@@ -255,6 +255,8 @@ func (r *Reconciler) deleteSubscription(ctx context.Context, operandName string,
255255 return errors .Wrap (err , "failed to delete subscription" )
256256 }
257257 }
258+
259+ klog .V (1 ).Infof ("Subscription %s/%s is deleted" , namespace , op .Name )
258260 return nil
259261}
260262
0 commit comments