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

fix(kumactl) Check version after loading config. #1879

Merged
merged 3 commits into from
Apr 26, 2021

Conversation

parkanzky
Copy link
Contributor

@parkanzky parkanzky commented Apr 26, 2021

Summary

The version comparison in kumactl was not working - it would attempt to connect to kuma-cp to retrieve version prior to loading config and that retrieval would silently fail. This fix moves the API call to happen after config loads.

Also changed the error message to conform to what is specified in the ticket.

Full changelog

  • Fix kumactl / kuma-cp version comparison in kumactl.

@parkanzky parkanzky requested a review from a team as a code owner April 26, 2021 14:08
@CLAassistant
Copy link

CLAassistant commented Apr 26, 2021

CLA assistant check
All committers have signed the CLA.

Signed-off-by: Paul Parkanzky <paul.parkanzky@konghq.com>
@parkanzky parkanzky force-pushed the fix/check-version-after-loading-cfg branch from 26c781f to 2e166f9 Compare April 26, 2021 14:09
* Properly early-return error to calling function
* Send warnings to stderr

Signed-off-by: Paul Parkanzky <paul.parkanzky@konghq.com>
@parkanzky parkanzky force-pushed the fix/check-version-after-loading-cfg branch from 22ed49a to a5c8ced Compare April 26, 2021 14:45
Signed-off-by: Paul Parkanzky <paul.parkanzky@konghq.com>
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.

3 participants