diff options
author | rekby <rekby@ydb.tech> | 2023-08-24 16:18:37 +0300 |
---|---|---|
committer | rekby <rekby@ydb.tech> | 2023-08-24 16:33:17 +0300 |
commit | 890fb1bb552aca548086b4a920cb89f1af9eb114 (patch) | |
tree | 581abdb8d8e4d7c95b74c244a6afd1ce1f5d1720 | |
parent | de06ce7ca02187625397ef74e16bbfbf743ac686 (diff) | |
download | ydb-890fb1bb552aca548086b4a920cb89f1af9eb114.tar.gz |
get feature flags from env
-rw-r--r-- | ydb/public/tools/lib/cmds/__init__.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ydb/public/tools/lib/cmds/__init__.py b/ydb/public/tools/lib/cmds/__init__.py index 123e5c6443..92b653f463 100644 --- a/ydb/public/tools/lib/cmds/__init__.py +++ b/ydb/public/tools/lib/cmds/__init__.py @@ -6,6 +6,7 @@ import os import json import random import string +import typing # noqa: F401 from ydb.tests.library.common import yatest_common from ydb.tests.library.harness.kikimr_cluster import kikimr_cluster_factory @@ -300,6 +301,12 @@ def deploy(arguments): optionals.update({'grpc_ssl_enable': enable_tls()}) pdisk_store_path = arguments.ydb_working_dir if arguments.ydb_working_dir else None + enable_feature_flags = arguments.enabled_feature_flags.copy() # type: typing.List[str] + if 'YDB_FEATURE_FLAGS' in os.environ: + flags = os.environ['YDB_FEATURE_FLAGS'].split(",") + for flag_name in flags: + enable_feature_flags.append(flag_name) + configuration = KikimrConfigGenerator( parse_erasure(arguments), arguments.ydb_binary_path, @@ -319,7 +326,7 @@ def deploy(arguments): auth_config_path=arguments.auth_config_path, use_log_files=not arguments.dont_use_log_files, default_users=default_users(), - extra_feature_flags=arguments.enabled_feature_flags, + extra_feature_flags=enable_feature_flags, extra_grpc_services=arguments.enabled_grpc_services, **optionals ) |