diff --git a/api/queue/work/model_service_deployment.go b/api/queue/work/model_service_deployment.go index e76756994..2690d58c7 100644 --- a/api/queue/work/model_service_deployment.go +++ b/api/queue/work/model_service_deployment.go @@ -184,7 +184,7 @@ func (depl *ModelServiceDeployment) Deploy(job *queue.Job) error { func (depl *ModelServiceDeployment) generateModelOptions(ctx context.Context, model *models.Model, version *models.Version, endpoint *models.VersionEndpoint) (*models.ModelOption, error) { modelOpt := &models.ModelOption{} switch model.Type { - case models.ModelTypePyFunc: + case models.ModelTypePyFunc, models.ModelTypePyFuncV3: imageRef, err := depl.ImageBuilder.BuildImage(ctx, model.Project, model, version, endpoint.ImageBuilderResourceRequest) if err != nil { return modelOpt, err diff --git a/api/queue/work/model_service_deployment_test.go b/api/queue/work/model_service_deployment_test.go index c8dadfd0a..a75484751 100644 --- a/api/queue/work/model_service_deployment_test.go +++ b/api/queue/work/model_service_deployment_test.go @@ -250,7 +250,7 @@ func TestExecuteDeployment(t *testing.T) { }, imageBuilder: func() *imageBuilderMock.ImageBuilder { mockImgBuilder := &imageBuilderMock.ImageBuilder{} - mockImgBuilder.On("BuildImage", context.Background(), project, mock.Anything, mock.Anything). + mockImgBuilder.On("BuildImage", context.Background(), project, mock.Anything, mock.Anything, mock.Anything). Return("gojek/mymodel-1:latest", nil) return mockImgBuilder },