[skip e2e] Update codes of update file (#14059)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/14074/head
wt 2021-12-23 14:45:37 +08:00 committed by GitHub
parent f4374d616f
commit c4e003e1dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -146,6 +146,12 @@ def update_values(src_values_file, deploy_params_file):
return: no return
"""
perf_tolerations = [{
"key": "node-role.kubernetes.io/benchmark",
"operator": "Exists",
"effect": "NoSchedule"
}]
# deploy_mode, hostname, server_tag, milvus_config, server_config=None
try:
with open(src_values_file) as f:
@ -172,12 +178,7 @@ def update_values(src_values_file, deploy_params_file):
server_tag = utils.get_server_tag(deploy_params)
print(server_tag)
# TODO: update milvus config
# # update values.yaml with the given host
perf_tolerations = [{
"key": "node-role.kubernetes.io/benchmark",
"operator": "Exists",
"effect": "NoSchedule"
}]
# update values.yaml with the given host
# if server_name:
# node_config = {'kubernetes.io/hostname': server_name}
# elif server_tag: