From d91a9edf70c3887acb70f7fb7969178aa3e655a2 Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Mon, 15 Nov 2021 19:48:40 +0200 Subject: [PATCH] updated documentation Signed-off-by: Noam Gal --- docs/features/analysis.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/features/analysis.md b/docs/features/analysis.md index 0c563591ad..980d592c7b 100644 --- a/docs/features/analysis.md +++ b/docs/features/analysis.md @@ -426,8 +426,9 @@ spec: valueFrom: podTemplateHashValue: Latest ``` -Analysis arguments also support valueFrom for reading metadata fields and passing them as arguments to AnalysisTemplate. -An example would be to reference metadata labels like env and region and passing them along to AnalysisTemplate. +Analysis arguments also support valueFrom for reading any Rollout fields and passing them as arguments to AnalysisTemplate. +An example would be to reference metadata labels like env and region and passing them along to AnalysisTemplate, or any field +from the Rollout status ```yaml apiVersion: argoproj.io/v1alpha1 kind: Rollout @@ -457,6 +458,10 @@ spec: valueFrom: fieldRef: fieldPath: metadata.labels['region'] + - name: canary-hash + valueFrom: + fieldRef: + fieldPath: status.canary.weights.canary.podTemplateHash ``` ## BlueGreen Pre Promotion Analysis