From 6891ec29cbb2c04f584543965bdd4104cf33af8b Mon Sep 17 00:00:00 2001 From: hungran <26101787+hungran@users.noreply.github.com> Date: Tue, 11 Oct 2022 11:39:47 +0700 Subject: [PATCH] fix: correct docs when metrics got result empty --- docs/features/analysis.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/analysis.md b/docs/features/analysis.md index 478a7280f3..9e96cd1d65 100644 --- a/docs/features/analysis.md +++ b/docs/features/analysis.md @@ -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 @@ -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