Skip to content

Commit 2be1519

Browse files
committed
fix linting
Signed-off-by: dittops <[email protected]>
1 parent b445bec commit 2be1519

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/controller/modeladapter/modeladapter_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ func (r *ModelAdapterReconciler) DoReconcile(ctx context.Context, req ctrl.Reque
396396
if r.inconsistentModelAdapterStatus(oldInstance.Status, instance.Status) {
397397
condition := NewCondition(string(modelv1alpha1.ModelAdapterConditionReady), metav1.ConditionTrue,
398398
ModelAdapterAvailable, fmt.Sprintf("ModelAdapter %s is ready", klog.KObj(instance)))
399-
if err = r.updateStatus(ctx, instance, condition); err != nil {
399+
if err := r.updateStatus(ctx, instance, condition); err != nil {
400400
return reconcile.Result{}, fmt.Errorf("update modelAdapter status error: %v", err)
401401
}
402402
}
@@ -622,6 +622,7 @@ func (r *ModelAdapterReconciler) reconcileLoading(ctx context.Context, instance
622622
}
623623

624624
if targetPod.DeletionTimestamp != nil {
625+
klog.V(4).Infof("Skipping pod %s/%s because it is being deleted", targetPod.Namespace, targetPod.Name)
625626
continue
626627
}
627628

0 commit comments

Comments
 (0)