From 0e6faab245c3d270d9d992730d80b980d9ebe218 Mon Sep 17 00:00:00 2001 From: ThreadDao Date: Mon, 11 Oct 2021 20:18:29 +0800 Subject: [PATCH] [skip ci] Add default scale release prefix (#9683) Signed-off-by: ThreadDao --- tests/python_client/scale/constants.py | 3 +++ tests/python_client/scale/helm_env.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/python_client/scale/constants.py b/tests/python_client/scale/constants.py index fefab3d93..0cdbee8e2 100644 --- a/tests/python_client/scale/constants.py +++ b/tests/python_client/scale/constants.py @@ -12,3 +12,6 @@ QUERY_NODE = "queryNode" # key queryNode # my values.yaml path MILVUS_CHART_ENV = 'MILVUS_CHART_ENV' # env of milvus chart path MILVUS_LOGS_PATH = '/tmp/milvus' # path of milvus pod logs + +# default scale config +DEFAULT_RELEASE_PREFIX = "scale" diff --git a/tests/python_client/scale/helm_env.py b/tests/python_client/scale/helm_env.py index 802c07971..2d8536871 100644 --- a/tests/python_client/scale/helm_env.py +++ b/tests/python_client/scale/helm_env.py @@ -10,7 +10,7 @@ class HelmEnv: milvus_chart_path = sc.get_milvus_chart_env_var() def __init__(self, release_name=None, **kwargs): - self.release_name = release_name if release_name else cf.gen_unique_str("scale") + self.release_name = release_name if release_name else cf.gen_unique_str(constants.DEFAULT_RELEASE_PREFIX) self.proxy = kwargs.get(constants.PROXY, 1) self.data_node = kwargs.get(constants.DATA_NODE, 1) self.index_node = kwargs.get(constants.INDEX_NODE, 1) -- GitLab