Commit Graph

31 Commits

Author SHA1 Message Date
Paul Boyd fbd6eaf0aa
chore: remove go.work and go.work.sum (#1695)
Signed-off-by: Paul Boyd <paul@pboyd.io>
2025-10-03 15:12:08 +00:00
Paul Boyd 7cdee76428
Unescape catalog model names / publish catalog openapi client (#1555)
* chore(catalog): put openapi Go files in a package

Similar to #1322, but for the catalog.

Signed-off-by: Paul Boyd <paul@pboyd.io>

* fix(catalog): unescape model names

Fixes #1554

Signed-off-by: Paul Boyd <paul@pboyd.io>

---------

Signed-off-by: Paul Boyd <paul@pboyd.io>
2025-09-09 09:44:37 +00:00
Alessio Pragliola 228b62d77e
chore: update go.work.sum file (#1471)
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
2025-08-14 12:31:14 +00:00
Alessio Pragliola 903eb23453
chore: move to more general purpose tag for go 1.24 (#1355)
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
2025-07-21 14:37:59 +00:00
Matt Prahl 4554d487e2
Make the openapi client a separate Go module (#1322)
This will allow Kubeflow Pipelines to use the Go client directly without
needing to import all of Model Registry and inheriting its dependencies.

This introduces the concept of a Go workspace to allow multiple Go
modules to live in the same repo.

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
2025-07-21 09:37:57 +00:00
Alessio Pragliola c843a03dfe
feat: remove linting/gen from dockerfile (#1334)
* feat: remove linting/gen from dockerfile

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

* fix: missing checkout in action

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

* fix: change prepare step

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

* feat: make test target atomic

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

* feat: make the jobs depend on prepare

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

---------

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
2025-07-18 20:27:41 +00:00
Paul Boyd 3014cb90f2
chore(deps): use ubi9 base images (#1328)
Upgrade from ubi8 to ubi9.

Signed-off-by: Paul Boyd <paul@pboyd.io>
2025-07-17 15:02:41 +00:00
Alessio Pragliola 47374731d5
feat: move to go 1.24 (#1313)
* feat: move to go 1.24

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

* fix: docker image tag

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>

---------

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
2025-07-14 19:02:37 +00:00
Paul Boyd 770d2c27ea
Initial Model Catalog API (#1209)
* Initial version of Catalog Service

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

add model artifact to catalog model version

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

remove unused import

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

add Makefile checks for model catalog service

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

add catalog pkg to load catalog sources and a simple yaml catalog implementation scaffold

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

add initial catalog source and yaml catalog loading implementations

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

feat: add endpoint to list all models across catalog sources

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

update yaml catalog schema

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

* feat: model catalog static sources

Implement `/api/model_catalog/v1alpha1/sources` in a separate deployment
from model registry.

Signed-off-by: Paul Boyd <pboyd@redhat.com>

---------

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>
Signed-off-by: Paul Boyd <pboyd@redhat.com>
Co-authored-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>
2025-06-24 15:34:15 +00:00
Matteo Mortari 42690b6a5d
chore: add comment (#1049)
Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com>
2025-04-30 09:59:02 +00:00
Alessio Pragliola b8048c1dde
chore: fix inconsistent case in Dockerfile (#991)
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
2025-04-17 20:21:24 +00:00
Alessio Pragliola 0135c9f120
feat: improve dev QoL (#984)
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
2025-04-17 14:13:25 +00:00
Paul Boyd 5847f9f12e
chore: upgrade to Go 1.23 (#961)
Signed-off-by: Paul Boyd <pboyd@redhat.com>
2025-04-11 07:35:05 +00:00
Paul Boyd 1ebadef038
fix: Update openapi-server codegen to re-create manual changes (#822)
The code in the repo has deviated from what openapi-generator-cli
produces. This overrides the templates so that the generated code is
equivalent.

Signed-off-by: Paul Boyd <pboyd@redhat.com>
2025-02-28 14:28:43 +00:00
dependabot[bot] c811819c77
build(deps): bump ubi8/go-toolset from 1.21 to 1.22 (#550)
Bumps ubi8/go-toolset from 1.21 to 1.22.

---
updated-dependencies:
- dependency-name: ubi8/go-toolset
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-27 10:45:53 +00:00
Isabella Basso 5edd9091b5
Fix type assert generation on MacOS (#403)
* update golangci-lint

Signed-off-by: Isabella do Amaral <idoamara@redhat.com>

* ignore cypress artifacts

Signed-off-by: Isabella do Amaral <idoamara@redhat.com>

* gen type asserts in python


Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com>
Co-authored-by: Matteo Mortari <matteo.mortari@gmail.com>
Signed-off-by: Isabella do Amaral <idoamara@redhat.com>

---------

Signed-off-by: Isabella do Amaral <idoamara@redhat.com>
Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com>
Co-authored-by: Matteo Mortari <matteo.mortari@gmail.com>
2024-09-20 06:31:30 +00:00
Dhiraj Bokde 3b002965dd
fix: fix Makefile and Dockerfile for idempotent images and to support multi-arch builds Fixes RHOAIENG-12078 (#322)
* fix: remove .git from Dockerfile

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

* fix: remove git check for model-registry.yaml in Makefile
fix gen/openapi-server make target to generate go-server if model-registry.yaml file is newer

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

* fix: commit updated type_asserts.go

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

* fix: sort assert functions in gen_type_asserts.sh before writing them to type_asserts.go

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

* feat: add 'image/buildx' target to create multi-platform docker images using docker buildx,
split 'build' target into 'build/prepare' and 'build/compile' to optimize multi-platform builds

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

* feat: add docker env variables to enable multi-platform cross compilation, optimize build steps

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

* fix: add podman support for buildx

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

* fix: remove docker builder if it already exists

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

---------

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>
2024-09-19 16:51:28 +00:00
Andrea Lamparelli d1aae5b550
Update CSI (#154)
* Update model registry CSI

Signed-off-by: Andrea Lamparelli <a.lamparelli95@gmail.com>

* Add CSI build, tag and push workflow

Signed-off-by: Andrea Lamparelli <a.lamparelli95@gmail.com>

---------

Signed-off-by: Andrea Lamparelli <a.lamparelli95@gmail.com>
2024-07-25 06:57:54 +00:00
dependabot[bot] 7643a536ba
build(deps): bump ubi8/go-toolset from 1.19 to 1.21 (#113)
Bumps ubi8/go-toolset from 1.19 to 1.21.

---
updated-dependencies:
- dependency-name: ubi8/go-toolset
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-19 07:48:59 +00:00
Matteo Mortari efe499d5eb
chore: use ubi8/ubi-minimal:latest for security updates (#96)
Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com>
2024-05-16 12:31:44 +00:00
Andrea Peruffo 8745364324
More controlled environment in the build (#52)
* More controlled environment in the build

Signed-off-by: Andrea Peruffo <andrea.peruffo1982@gmail.com>

* refactor docker-compose ports bind, hostname, network

Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com>

* implement todo for protoc aarch_64, avoid network:host

Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com>

---------

Signed-off-by: Andrea Peruffo <andrea.peruffo1982@gmail.com>
Signed-off-by: Matteo Mortari <matteo.mortari@gmail.com>
Co-authored-by: Matteo Mortari <matteo.mortari@gmail.com>
2024-04-12 07:38:48 +00:00
Andrea Lamparelli 90f7ddcd8d
Automate openapi server generation (#308)
* Fix type_assert.patch

* Improve openapi-server generation

* Automate openapi server generation if something changed
2024-02-15 11:17:29 +01:00
Matteo Mortari 225a2d7862
fix Dockerfile NodeJS version for openapi-generator-cli (#273) 2024-01-25 12:27:33 +01:00
Andrea Lamparelli 3e286f3db1
Remove go-server code from repository (#155) 2023-11-17 10:14:14 +01:00
Radim Kubis 5a98a6ba23
Revert "Update(Dockerfile): Use ubi9 images that contains required glibc version by gqlgen (#135)" (#150)
This reverts commit 6595e84e5c.
2023-11-17 09:50:25 +01:00
Matteo Mortari 9d9d48fd33
Create BuildListOption for REST query params (#139)
* Create BuildListOption for REST query params

* Implement code review feedback

* Dockerfile: copy pkg source folder

---------

Co-authored-by: Andrea Lamparelli <a.lamparelli95@gmail.com>
2023-11-14 09:39:09 +01:00
Radim Kubis 6595e84e5c
Update(Dockerfile): Use ubi9 images that contains required glibc version by gqlgen (#135) 2023-11-13 15:07:50 +01:00
dependabot[bot] 1a03b4cd12
Bump ubi8/ubi-minimal from 8.6 to 8.8 (#97) 2023-10-27 06:41:51 +00:00
Dhiraj Bokde 659ec4e776
Refactor model registry openapi definition. (#66)
* Refactor openapi definition

* Add name query parameter for model_version url, fix Artifact oneOf definition

* Added sortOrder query param

* Fix allOf composites for BaseArtifactUpdate and ModelArtifactUpdate

* Add model-serving metadata resources, openapi-generator-cli, and generated model, server, and proxy cmd

* Fix allOf types for InferenceServiceCreate and InferenceServiceUpdate
2023-10-18 09:15:17 -07:00
Dhiraj Bokde d8277f5c62 Add Dockerfile for registry, part of #15, fixes #40 2023-10-02 11:40:19 -07:00
Dhiraj Bokde e355fc9d4e Initial Version 2023-09-15 15:48:22 -07:00