Skip to content

Commit c8f7887

Browse files
sudohainguyenBhargav Dodla
authored andcommitted
fix: Bytewax engine create configmap from object (feast-dev#3821)
fix: bytewax engine create configmap from object Signed-off-by: Hai Nguyen <quanghai.ng1512@gmail.com>
1 parent 3a6e0c9 commit c8f7887

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

sdk/python/feast/infra/materialization/contrib/bytewax/bytewax_materialization_engine.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from feast.infra.registry.base_registry import BaseRegistry
2424
from feast.repo_config import FeastConfigBaseModel
2525
from feast.stream_feature_view import StreamFeatureView
26-
from feast.utils import _get_column_names, get_default_yaml_file_path
26+
from feast.utils import _get_column_names
2727

2828
from .bytewax_materialization_job import BytewaxMaterializationJob
2929

@@ -187,10 +187,7 @@ def _create_kubernetes_job(self, job_id, paths, feature_view):
187187
def _create_configuration_map(self, job_id, paths, feature_view, namespace):
188188
"""Create a Kubernetes configmap for this job"""
189189

190-
repo_path = self.repo_config.repo_path
191-
assert repo_path
192-
feature_store_path = get_default_yaml_file_path(repo_path)
193-
feature_store_configuration = feature_store_path.read_text()
190+
feature_store_configuration = yaml.dump(self.repo_config.dict())
194191

195192
materialization_config = yaml.dump(
196193
{"paths": paths, "feature_view": feature_view.name}

0 commit comments

Comments
 (0)