mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
[skip ci]Add comments for custom resource operations (#8468)
Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
This commit is contained in:
parent
52126f2d5a
commit
4aea1a00cc
@ -16,6 +16,7 @@ class CustomResourceOperations(object):
|
||||
self.plural = kind.lower()
|
||||
|
||||
def create(self, body):
|
||||
"""create or apply a custom resource in k8s"""
|
||||
pretty = 'true'
|
||||
config.load_kube_config()
|
||||
api_instance = client.CustomObjectsApi()
|
||||
@ -28,6 +29,7 @@ class CustomResourceOperations(object):
|
||||
raise Exception(str(e))
|
||||
|
||||
def delete(self, metadata_name, raise_ex=True):
|
||||
"""delete or uninstall a custom resource in k8s"""
|
||||
print(metadata_name)
|
||||
try:
|
||||
config.load_kube_config()
|
||||
|
Loading…
Reference in New Issue
Block a user