Commit Graph

4 Commits

Author SHA1 Message Date
Paul Boyd 79f837c3c1
Merge model-catalog-enhancements branch (#1656)
* feat(catalog): deploy postgres for model catalog (#1584)

* feat(catalog): initialize postgres for model catalog

Initialize PostgreSQL database for model catalog with connection setup.
Refactored embedmd initialization code from model registry for reuse.
Added Kubernetes manifests for PostgreSQL StatefulSet, PVC, and service
configuration.

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

* fix(catalog): remove chdir before loading catalogs

Instead of changing directories, pass the directory that files should be
relative to when loading a catalog.

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

---------

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

* feat(catalog): add postgres for catalog dev (#1623)

Adding to tilt and docker compose.

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

* feat(datastore): refactor type creation (#1636)

- Refactor embedmd to created types from a spec, instead of database
  migrations.
- Add TypeRepository and TypePropertyRepository services

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

* Add artifact types to the model catalog (#1649)

* chore: update testutils to take a datastore spec argument

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

* feat(catalog): add artifact types to openapi spec

And re-generate code.

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

* feat(catalog): add database models and services

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

---------

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

* Update api/openapi/src/catalog.yaml

Co-authored-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>
Signed-off-by: Paul Boyd <paul@pboyd.io>

* fix(catalog): set source_id type correctly

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

* fix(catalog): fix k8s resource names

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

---------

Signed-off-by: Paul Boyd <paul@pboyd.io>
Co-authored-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>
2025-10-01 10:47:33 +00:00
Alessio Pragliola 8c030e257a
feat: improve testing speed in embedmd (#1299)
* feat: improve testing speed in embedmd

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

* fix: wrong db config test values

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

* fix: test cleanup function postgresql

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

* fix: postgres test cleanup function

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

---------

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
2025-07-16 17:12:38 +00:00
Chanakya Thirumala Setty 7bdf9ba14b
Add SSL/TLS Config for Postgres (#1250)
* added ssl/tls support for postgres

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* fixed ssl error

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* fix: prevent multiple db instances in parallel (#1286)

* fix: prevent multiple db instances in parallel

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

* feat: make readinessprobe tests more stable

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

* feat: remove sync.once from connector

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

* fix: set readiness response to OK uppercase

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

---------

Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* added ssl/tls support for postgres

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* rebased

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* fixed rebase issues

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* Update connector.go

Signed-off-by: Chanakya Thirumala Setty <66557279+Chanakya-TS@users.noreply.github.com>

---------

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>
Signed-off-by: Alessio Pragliola <seth.pro@gmail.com>
Signed-off-by: Chanakya Thirumala Setty <66557279+Chanakya-TS@users.noreply.github.com>
Co-authored-by: Alessio Pragliola <83355398+Al-Pragliola@users.noreply.github.com>
2025-07-10 13:25:53 +00:00
Chanakya Thirumala Setty b59a4ebd5c
Add PostgreSQL Support to Model Registry (#1204)
* Added Postgres Support

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* Fixed imports and env param

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* Fixed order of migrations and syntax errors

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* Updated logging and used constants from service.go

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* fixed logging in migrate_test.go

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* Update params.env

Signed-off-by: Chanakya Thirumala Setty <66557279+Chanakya-TS@users.noreply.github.com>
Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* Refactor database type handling to use constants from a new types package

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* Makefile update

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* Added GHA

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* mysql gens

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* fixed incorrect gens

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* fixed typekind datatype

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* updating makefile

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* fixed default null issue

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* fixed workflow

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* updated go.mod go.sum

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* fixed migrate test

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* fixed errors

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* fixed unused import

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

* added error return

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>

---------

Signed-off-by: Chanakya Thirumala Setty <cthiruma@redhat.com>
Signed-off-by: Chanakya Thirumala Setty <66557279+Chanakya-TS@users.noreply.github.com>
2025-07-01 13:50:17 +00:00