Skip to content

Commit

Permalink
inferenceservice controller: fix error check in Serverless mode (kser…
Browse files Browse the repository at this point in the history
…ve#3753)

Signed-off-by: Daniele Trifirò <dtrifiro@redhat.com>
  • Loading branch information
dtrifiro authored and israel-hdez committed Aug 7, 2024
1 parent 5c903a4 commit 249513f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/v1beta1/inferenceservice/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (r *InferenceServiceReconciler) Reconcile(ctx context.Context, req ctrl.Req
// Abort early if the resolved deployment mode is Serverless, but Knative Services are not available
if deploymentMode == constants.Serverless {
ksvcAvailable, checkKsvcErr := utils.IsCrdAvailable(r.ClientConfig, knservingv1.SchemeGroupVersion.String(), constants.KnativeServiceKind)
if err != nil {
if checkKsvcErr != nil {
return reconcile.Result{}, checkKsvcErr
}

Expand Down

0 comments on commit 249513f

Please sign in to comment.