From db826dff0d01699f58665cd4f6279b42cf2ed432 Mon Sep 17 00:00:00 2001 From: wangyelei Date: Fri, 8 Dec 2023 10:46:19 +0800 Subject: [PATCH] update api --- addons/kafka/opsdefinitions/quota.yaml | 6 +++--- addons/kafka/opsdefinitions/topic.yaml | 6 +++--- addons/kafka/opsdefinitions/useracl.yaml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/addons/kafka/opsdefinitions/quota.yaml b/addons/kafka/opsdefinitions/quota.yaml index 4b26e8451..9a52ff074 100644 --- a/addons/kafka/opsdefinitions/quota.yaml +++ b/addons/kafka/opsdefinitions/quota.yaml @@ -96,7 +96,7 @@ spec: addCommandArg add-config "${quotas}" echo ${command} eval ${command} - preChecks: - - expression: - rule: '{{ eq .component.status.phase "Running" }}' + preConditions: + - rule: + expression: '{{ eq .component.status.phase "Running" }}' message: "Component is not in Running status." \ No newline at end of file diff --git a/addons/kafka/opsdefinitions/topic.yaml b/addons/kafka/opsdefinitions/topic.yaml index eaabd5a13..12cb2eccf 100644 --- a/addons/kafka/opsdefinitions/topic.yaml +++ b/addons/kafka/opsdefinitions/topic.yaml @@ -88,7 +88,7 @@ spec: fi echo "${command}" ${command} - preChecks: - - expression: - rule: '{{ eq .component.status.phase "Running" }}' + preConditions: + - rule: + expression: '{{ eq .component.status.phase "Running" }}' message: "Component is not in Running status." \ No newline at end of file diff --git a/addons/kafka/opsdefinitions/useracl.yaml b/addons/kafka/opsdefinitions/useracl.yaml index 0fd436ca6..8fadb96b1 100644 --- a/addons/kafka/opsdefinitions/useracl.yaml +++ b/addons/kafka/opsdefinitions/useracl.yaml @@ -144,7 +144,7 @@ spec: addMultiCommand "${operations}" operation echo $command ${command} - preChecks: - - expression: - rule: '{{ eq .component.status.phase "Running" }}' + preConditions: + - rule: + expression: '{{ eq .component.status.phase "Running" }}' message: "Component is not in Running status." \ No newline at end of file