-
Notifications
You must be signed in to change notification settings - Fork 97
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
🐛 Running an upgrade without a source fails #2431
Comments
Unfortunately, this is kind of correct as we need to check the different sources coming from different places before being able to fail without a source:
This needs to check:
before being able to determine that there is not an upgrade source specified. @mauromorales what was your idea on how this should behave? At the start? This is practically the start, it just gets all the config and such and then builds the spec and fails if it doesnt have an upgrade source, which Its the earliest we can do it IMO. If we only had the source flag then yeah we could fail earlier. |
@Itxaka IMO it should not run but just show the help so you know that the |
@mauromorales well, the thing is the source flag is NOT required as you can have the source come form the config files for example, or from an event, so the flag in there is to OVERRIDE the values on the config files (I think it goes flag>config in precedence) so we cannot fail earlier. |
@Itxaka ahhhh shooot, now I get it, sorry ... hmm, but it feels like then upgrade is actually multiple commands in one in that case. Because specially events, they don't need to have a pretty interface, and IMO the failed output here does not tell me I have those 3 options to set the source. But let's close for now because changing that would impact other consumers I guess |
I would not close it. Indeed it seems like the message could be much nicer and clearer on where the issue is. I will try as small patch to identify the error and print something nicer that points to a fix for the error |
kairos-io/kairos-agent#293 for better output message |
I don't see the point of having
kairos-agent upgrade
if it doesn't work unless you pass a sourceKairos version:
CPU architecture, OS, and Version:
amd64
Describe the bug
Expected behavior
command doesn't even start if a flag is required
Logs
Additional context
The text was updated successfully, but these errors were encountered: