[skip ci]Fix chaos apply for Schedule kind (#10309)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/10316/head
zhuwenxing 2021-10-20 20:26:36 +08:00 committed by GitHub
parent 4f00e882e5
commit 3b1fecad46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,10 @@ class CustomResourceOperations(object):
self.group = group
self.version = version
self.namespace = namespace
self.plural = kind.lower()
if kind.lower() == "schedule":
self.plural = "schedules"
else:
self.plural = kind.lower()
def create(self, body):
"""create or apply a custom resource in k8s"""