Commit cb02722
committed
feat(backend): replace MLMD with native artifact/task storage
Remove ML Metadata (MLMD) service dependency and implement artifact
and task tracking directly in the KFP database via the API server.
This architectural change eliminates the external MLMD service (metadata-grpc,
metadata-writer) and consolidates all metadata operations through the KFP API.
Major changes:
- Add v2beta1 artifact service API with storage layer implementation
- Extend run service with task CRUD endpoints and ViewMode
- Extend run response object with detailed task information
- Refactor driver/launcher to use KFP API client instead of MLMD client
- Remove all MLMD-related deployments and manifests
- Remove object store session info storage in metadata layer
- Add comprehensive test coverage for new storage and API layers
This simplifies deployment, reduces operational complexity, and provides
better control over metadata storage performance and schema.
Signed-off-by: Humair Khan <[email protected]>
# Conflicts:
# backend/api/v2beta1/go_client/run.pb.go
# backend/api/v2beta1/go_client/run.pb.gw.go
# backend/api/v2beta1/go_client/run_grpc.pb.go
# backend/api/v2beta1/swagger/kfp_api_single_file.swagger.json
# backend/metadata_writer/src/metadata_helpers.py
# backend/src/apiserver/resource/resource_manager.go
# backend/src/v2/cmd/driver/main.go
# backend/src/v2/compiler/argocompiler/container.go
# backend/src/v2/compiler/argocompiler/importer.go
# backend/src/v2/driver/driver.go
# backend/src/v2/driver/driver_test.go
# backend/src/v2/metadata/env.go
# manifests/kustomize/env/cert-manager/base-tls-certs/kfp-api-cert.yaml
# manifests/kustomize/env/cert-manager/platform-agnostic-standalone-tls/patches/metadata-writer-deployment.yaml
# test_data/compiled-workflows/components_with_optional_artifacts.yaml
# test_data/compiled-workflows/modelcar.yaml
# test_data/compiled-workflows/pipeline_with_dynamic_importer_metadata.yaml
# test_data/compiled-workflows/pipeline_with_google_artifact_type.yaml
# test_data/compiled-workflows/pipeline_with_importer.yaml
# test_data/compiled-workflows/pipeline_with_importer_and_gcpc_types.yaml
# test_data/compiled-workflows/pipeline_with_string_machine_fields_task_output.yaml
# test_data/compiled-workflows/pythonic_artifact_with_single_return.yaml
# test_data/compiled-workflows/ray_job_integration_compiled.yaml1 parent 0302125 commit cb02722
File tree
589 files changed
+64948
-19550
lines changed- .github
- actions
- deploy
- kfp-k8s
- resources/manifests
- base
- kubernetes-native/default
- multiuser
- artifact-proxy
- cache-disabled
- default
- minio
- standalone
- cache-disabled-proxy-minio
- cache-disabled-proxy
- cache-disabled
- default
- minio
- proxy-minio
- proxy
- tls-enabled
- workflows
- api/v2alpha1
- go/pipelinespec
- backend
- api
- hack
- v2beta1
- go_client
- go_http_client
- artifact_client
- artifact_service
- artifact_model
- run_client/run_service
- run_model
- python_http_client
- docs
- kfp_server_api
- api
- models
- test
- swagger
- metadata_writer
- src
- src
- apiserver
- client_manager
- common
- config
- proxy
- model
- resource
- server
- storage
- validation
- common
- client/api_server/v2
- util
- v2
- apiclient
- kfpapi
- cacheutils
- client_manager
- cmd
- driver
- launcher-v2
- compiler/argocompiler
- component
- config
- driver
- common
- resolver
- test_data
- expression
- metadata
- testutils
- objectstore
- test
- end2end/utils
- proto_tests
- testdata
- generated-1791485
- generated
- testutil
- v2/integration
- hack
- manifests/kustomize
- base
- installs/multi-user
- metadata-writer
- metadata
- base
- options/istio
- overlays
- db
- patches
- postgres
- patches
- pipeline
- metadata-writer
- env
- cert-manager
- base-tls-certs
- platform-agnostic-standalone-tls
- patches
- dev
- gcp
- openshift/base
- plain-multi-user
- plain
- platform-agnostic-minio
- platform-agnostic-multi-user-minio
- platform-agnostic-multi-user
- platform-agnostic
- proposals/12147-mlmd-removal
- protos
- test_data/compiled-workflows
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
589 files changed
+64948
-19550
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
| |||
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
48 | | - | |
| 55 | + | |
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
| |||
This file was deleted.
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 27 | | |
35 | 28 | | |
36 | 29 | | |
| |||
47 | 40 | | |
48 | 41 | | |
49 | 42 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 43 | | |
56 | 44 | | |
57 | 45 | | |
| |||
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 27 | | |
35 | 28 | | |
36 | 29 | | |
| |||
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 59 | | |
72 | 60 | | |
73 | 61 | | |
| |||
Lines changed: 0 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 21 | | |
26 | 22 | | |
27 | 23 | | |
| |||
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 30 | | |
39 | 31 | | |
40 | 32 | | |
| |||
51 | 43 | | |
52 | 44 | | |
53 | 45 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 46 | | |
60 | 47 | | |
61 | 48 | | |
| |||
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 27 | | |
35 | 28 | | |
36 | 29 | | |
| |||
47 | 40 | | |
48 | 41 | | |
49 | 42 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 43 | | |
56 | 44 | | |
57 | 45 | | |
| |||
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 27 | | |
35 | 28 | | |
36 | 29 | | |
| |||
47 | 40 | | |
48 | 41 | | |
49 | 42 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 43 | | |
56 | 44 | | |
57 | 45 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
0 commit comments