[skip ci]Add comments for upgrade milvus (#10936)

Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
pull/10614/head
yanliang567 2021-10-30 11:08:41 +08:00 committed by GitHub
parent 0e5c7575cf
commit 88b4b17b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -88,6 +88,13 @@ class MilvusOperator(object):
cus_res.delete(release_name)
def upgrade(self, release_name, configs, namespace='default'):
"""
Method: patch custom resource object to upgrade milvus
Params:
release_name: release name of milvus
configs: a dict type like configurations to be upgrade milvus
namespace: namespace that the milvus is running in
"""
if not isinstance(configs, dict):
log.error("customize configurations must be in dict type")
return None