[skip e2e]increase compatibility with different inputs (#24962)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/24963/head
zhuwenxing 2023-06-16 18:40:40 +08:00 committed by GitHub
parent 46f7d903a3
commit 8d0c223726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@ def get_chart_version(repo = "milvus/milvus", app_version="2.2.0"):
"""
Get helm chart version by app version
"""
if app_version.startswith("v"):
app_version = app_version[1:]
cmd = f"helm search repo {repo} -l -o json"
result = subprocess.check_output(cmd, shell=True)
result = json.loads(result)