Skip to content

Commit

Permalink
update api
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyelei committed Dec 8, 2023
1 parent 7aa291e commit db826df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions addons/kafka/opsdefinitions/quota.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
6 changes: 3 additions & 3 deletions addons/kafka/opsdefinitions/topic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
6 changes: 3 additions & 3 deletions addons/kafka/opsdefinitions/useracl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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."

0 comments on commit db826df

Please sign in to comment.