Skip to content

Commit

Permalink
updated documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Noam Gal <[email protected]>
  • Loading branch information
ATGardner committed Nov 15, 2021
1 parent ce18d9a commit d91a9ed
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/features/analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d91a9ed

Please sign in to comment.