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
add current and available release version to upstream upgrade cmd #2380
Conversation
129921a
to
c28cad5
Compare
c28cad5
to
b67d67a
Compare
} | ||
|
||
var availableReleases []UpdateCheckRelease | ||
availableSequence := appVersions.AllVersions[0].Sequence + 1 |
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.
having to do this because new versions aren't immediately assigned sequence numbers. open to feedback if you can think of something better.
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.
"make a new command that just returns the available, parsed versions" is what I see as better here :)
though this is better than nothing for the command we have
What type of PR is this?
kind/enhancement
What this PR does / why we need it:
This PR adds the current and latest versions to the output of
kots upstream upgrade
. This includes the sequence numbers and semver labels. For the latest versions, all new available versions are listed. Customers are expected to store those available versions if needed because they won't be returned again after they're pulled.36671
Special notes for your reviewer:
Feel free to suggest any name changes on the JSON output.
Does this PR introduce a user-facing change?
Does this PR require documentation?
NONE