mirror of https://github.com/milvus-io/milvus.git
[skip ci]Fix chaos apply for Schedule kind (#10309)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/10316/head
parent
4f00e882e5
commit
3b1fecad46
|
@ -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"""
|
||||
|
|
Loading…
Reference in New Issue