Skip to content
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

Merged
merged 7 commits into from Dec 7, 2021

Conversation

morningvera
Copy link
Contributor

@morningvera morningvera commented Dec 6, 2021

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?

Added version output for both current and new available releases to the upstream upgrade CLI command.

Does this PR require documentation?

NONE

@morningvera morningvera changed the title wip add current and available release version info to upstream upgrade cmd Dec 7, 2021
@morningvera morningvera changed the title add current and available release version info to upstream upgrade cmd add current and available release version to upstream upgrade cmd Dec 7, 2021
}

var availableReleases []UpdateCheckRelease
availableSequence := appVersions.AllVersions[0].Sequence + 1
Copy link
Contributor Author

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.

Copy link
Member

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

pkg/updatechecker/updatechecker.go Outdated Show resolved Hide resolved
@morningvera
Copy link
Contributor Author

JSON output:

Screen Shot 2021-12-06 at 8 29 20 PM

text output:

Screen Shot 2021-12-06 at 8 28 07 PM

@morningvera morningvera marked this pull request as ready for review December 7, 2021 01:57
@morningvera morningvera requested a review from a team December 7, 2021 01:57
@morningvera
Copy link
Contributor Author

JSON error output:

Screen Shot 2021-12-07 at 9 53 43 AM

text error output:

Screen Shot 2021-12-07 at 9 53 24 AM

@morningvera morningvera merged commit c21c5ca into master Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants