Skip to content

Commit

Permalink
fix: Modify validation to check Analysis args passed through RO spec (a…
Browse files Browse the repository at this point in the history
…rgoproj#1215)

* fix: Modify validation to check Analysis args passed through RO spec

Signed-off-by: khhirani <[email protected]>
Signed-off-by: caoyang001 <[email protected]>
  • Loading branch information
khhirani authored and Hui Kang committed Sep 16, 2021
1 parent 5dc6b40 commit e069e2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rollout/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ func (c *rolloutContext) getReferencedRolloutAnalyses() (*[]validation.AnalysisT
for i, step := range canary.Steps {
if step.Analysis != nil {
templates, err := c.getReferencedAnalysisTemplates(c.rollout, step.Analysis, validation.InlineAnalysis, i)
templates.Args = step.Analysis.Args
if err != nil {
return nil, err
}
Expand Down

0 comments on commit e069e2b

Please sign in to comment.