-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: verify analysis arguments name with those in the rollout #1071
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1071 +/- ##
==========================================
+ Coverage 81.00% 81.04% +0.04%
==========================================
Files 103 103
Lines 9166 9186 +20
==========================================
+ Hits 7425 7445 +20
Misses 1246 1246
Partials 495 495
Continue to review full report at Codecov.
|
- return error if arguments do not match between rollout spec and analysis template Signed-off-by: Hui Kang <[email protected]>
@khhirani can you review this? |
@jessesuen , are we expecting the following case to be passed? kind: AnalysisTemplate
apiVersion: argoproj.io/v1alpha1
metadata:
name: sleep-job
spec:
args:
- name: duration
value: 0s
- name: exit-code
value: "0"
- name: count
value: "1" kind: Rollout
metadata:
name: canary-promote-full
spec:
replicas: 3
strategy:
canary:
maxUnavailable: 0
analysis:
templates:
- templateName: sleep-job In this case, the Rollout does not provide any args, but the AnalysisTemplate seems having some default value. Is this a valid usage? |
Yes, defaulting is a feature of the AnalysisTemplate. |
Thanks. I have updated PR to consider the default values. |
Signed-off-by: Hui Kang <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @huikang , your PR looks good to merge
close #1052