mirror of https://github.com/milvus-io/milvus.git
[skip e2e]increase compatibility with different inputs (#24962)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/24963/head
parent
46f7d903a3
commit
8d0c223726
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue