-
Notifications
You must be signed in to change notification settings - Fork 880
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
Analysis Template argument without default value can not be resolved in the rollout yaml #1208
Comments
@jessesuen , before this line
The method does not check if the argument name is available in the rollout spec. I think the logic could
What do you think? |
@khhirani this is your code. can you check? |
@jessesuen @huikang This is expected behavior. Each arg in the AnalysisTemplate must have either a |
@khhirani @jessesuen , thanks for checking. My thought is this is a regress because in this demo application, these two args do not have any value. Their values comes from the rollout yaml: Since the rollout-demo was written in 2020, i thought this would be the initial design. If so, shall we fix the rollout-demo? |
I think we also need to fix some missing values in the doc to avoid confusion to the users: https://argoproj.github.io/argo-rollouts/features/analysis/ Please correct me if I am wrong |
@khhirani I just upgraded from v0.10 to v1.0.0 and this is a regression. We were using two args defined in a ClusterAnalysisTemplate without values which had the behavior of requiring those args in the Rollout spec instead of making them optional via default values. In order to fix this bug in v1.0.0 we had to set all args in the ClusterAnalysisTemplate with default values as you say. FWIW, I preferred the old behavior which allow both required and optional args. To @huikang ’s point about the documentation and the fact we were relying on this old behavior and the upgrade broke it, as a user I certainly consider this a regression whether the previous behavior I have described was intended or not. Thank you. |
Summary
When AnalysisTemplate has an argument what does not have a default value or
valuefrom
. The controller's validation failed due to unresolved argument name.Diagnostics
What version of Argo Rollouts are you running?
commit id: 912d3ac
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritize the issues with the most 👍.
The text was updated successfully, but these errors were encountered: