From e15dd68ac8365afad174c61402adf29239075961 Mon Sep 17 00:00:00 2001 From: Daniela Plascencia Date: Fri, 27 Oct 2023 11:48:29 +0200 Subject: [PATCH] fix: use full svc name and namespace for METADATA_GRPC_SERVICE_HOST env var (#361) The METADATA_GRPC_SERVICE_HOST env var has to include the name and namespace of the metadata grpc server, otherwise pipeline runs end in errors when trying to write in the metadata SQLite DB. This commit reverts a change introduced by canonical/kfp-operators#3312. --- charms/kfp-profile-controller/src/charm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charms/kfp-profile-controller/src/charm.py b/charms/kfp-profile-controller/src/charm.py index 9e834d00..6926b128 100755 --- a/charms/kfp-profile-controller/src/charm.py +++ b/charms/kfp-profile-controller/src/charm.py @@ -49,7 +49,7 @@ # This service name must be the Service from the mlmd-operator # FIXME: leaving it hardcoded now, but we should share this # host and port through relation data -METADATA_GRPC_SERVICE_HOST = "metadata-grpc-service" +METADATA_GRPC_SERVICE_HOST = "metadata-grpc-service.kubeflow" METADATA_GRPC_SERVICE_PORT = "8080" NAMESPACE_LABEL = "pipelines.kubeflow.org/enabled" SYNC_CODE_FILE = Path("files/upstream/sync.py")