From 4aea1a00cc5b9f2574bdc36eeccff629e2871765 Mon Sep 17 00:00:00 2001 From: yanliang567 <82361606+yanliang567@users.noreply.github.com> Date: Fri, 24 Sep 2021 14:12:00 +0800 Subject: [PATCH] [skip ci]Add comments for custom resource operations (#8468) 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 0b62993c1..c0656aa05 100644 --- a/tests/python_client/common/cus_resource_opts.py +++ b/tests/python_client/common/cus_resource_opts.py @@ -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() -- GitLab