[skip ci]Update comments in custom resource class (#10489)

Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
pull/10495/head
yanliang567 2021-10-23 10:01:20 +08:00 committed by GitHub
parent 6949350b8b
commit 72e7bd80a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class CustomResourceOperations(object):
return data
def get(self, metadata_name):
"""list all the customer resources in k8s"""
"""get a customer resources by name in k8s"""
try:
config.load_kube_config()
api_instance = client.CustomObjectsApi()
@ -85,7 +85,7 @@ class CustomResourceOperations(object):
name=metadata_name)
log.debug(f"get custom resource response: {api_response}")
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))
return api_response