mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
[skip ci]Update comments in custom resource class (#10489)
Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
This commit is contained in:
parent
6949350b8b
commit
72e7bd80a9
@ -76,7 +76,7 @@ class CustomResourceOperations(object):
|
|||||||
return data
|
return data
|
||||||
|
|
||||||
def get(self, metadata_name):
|
def get(self, metadata_name):
|
||||||
"""list all the customer resources in k8s"""
|
"""get a customer resources by name in k8s"""
|
||||||
try:
|
try:
|
||||||
config.load_kube_config()
|
config.load_kube_config()
|
||||||
api_instance = client.CustomObjectsApi()
|
api_instance = client.CustomObjectsApi()
|
||||||
@ -85,7 +85,7 @@ class CustomResourceOperations(object):
|
|||||||
name=metadata_name)
|
name=metadata_name)
|
||||||
log.debug(f"get custom resource response: {api_response}")
|
log.debug(f"get custom resource response: {api_response}")
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
log.error("Exception when calling CustomObjectsApi->list_namespaced_custom_object: %s\n" % e)
|
log.error("Exception when calling CustomObjectsApi->get_namespaced_custom_object: %s\n" % e)
|
||||||
raise Exception(str(e))
|
raise Exception(str(e))
|
||||||
return api_response
|
return api_response
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user