Skip to content

Commit

Permalink
fix: correct docs when metrics got result empty
Browse files Browse the repository at this point in the history
Signed-off-by: hungran <[email protected]>
  • Loading branch information
hungran committed Oct 11, 2022
1 parent 0064d3d commit b64ee05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/features/analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ Here are two examples where a metric result of empty array is considered success
apiVersion: argoproj.io/v1alpha1
kind: AnalysisRun
...
successCondition: len(result) == 0 || result >= 0.95
successCondition: len(result) == 0 || result[0] >= 0.95
status:
metricResults:
- count: 1
Expand All @@ -1081,7 +1081,7 @@ status:
apiVersion: argoproj.io/v1alpha1
kind: AnalysisRun
...
successCondition: len(result) > 0 && result >= 0.95
successCondition: len(result) > 0 && result[0] >= 0.95
status:
metricResults:
- count: 1
Expand Down

0 comments on commit b64ee05

Please sign in to comment.