You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2023/01/05 14:17:32 UTC

[GitHub] [beam] TSultanov commented on a diff in pull request #24818: [Playground] Add an option for Datastore namespace value for ci_cd.py script

TSultanov commented on code in PR #24818:
URL: https://github.com/apache/beam/pull/24818#discussion_r1062521075


##########
playground/infrastructure/datastore_client.py:
##########
@@ -44,10 +44,10 @@ class DatastoreClient:
 
     _datastore_client: datastore.Client
 
-    def __init__(self):
+    def __init__(self, namespace: str):
         self._check_envs()
         self._datastore_client = datastore.Client(
-            namespace=DatastoreProps.NAMESPACE, project=Config.GOOGLE_CLOUD_PROJECT
+            namespace=namespace, project=Config.GOOGLE_CLOUD_PROJECT

Review Comment:
   Moved this configuration option from environment variable to the `ci_cd.py` script arguments and updated the ci/cd configs which use this script



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org