From 4c9929d0c34e1ad83791a73774f90fc000c380d1 Mon Sep 17 00:00:00 2001 From: yanliang567 <82361606+yanliang567@users.noreply.github.com> Date: Sun, 26 Sep 2021 12:52:24 +0800 Subject: [PATCH] [skip ci]Add comments in custom resource opt (#8544) Signed-off-by: yanliang567 --- tests/python_client/common/cus_resource_opts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/python_client/common/cus_resource_opts.py b/tests/python_client/common/cus_resource_opts.py index c0656aa059..173f1784a5 100644 --- a/tests/python_client/common/cus_resource_opts.py +++ b/tests/python_client/common/cus_resource_opts.py @@ -43,6 +43,7 @@ class CustomResourceOperations(object): raise Exception(str(e)) def list_all(self): + """list all the customer resources in k8s""" try: config.load_kube_config() api_instance = client.CustomObjectsApi() @@ -54,6 +55,7 @@ class CustomResourceOperations(object): return data def delete_all(self): + """delete all the customer resources in k8s""" cus_objects = self.list_all() if len(cus_objects["items"]) > 0: for item in cus_objects["items"]: