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: use hardcoded Konnect version instead of retrieving it #1095

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

GGabriele
Copy link
Collaborator

This commit removes the logic to fetch the Konnect version from Konnect API and it simply hardcodes it. The Konnect version is used only to evaluate and decide which format_version to expect or dump in state files. Since Konnect only uses '_format_verion: 3.0', and since Konnect always uses the latest Kong version, then we can simply hardcode the Konnect version and avoid an unnecessary network call

This commit removes the logic to fetch the Konnect version
from Konnect API and it simply hardcodes it. The Konnect version
is used only to evaluate and decide which format_version to expect
or dump in state files. Since Konnect only uses '_format_verion: 3.0',
and since Konnect always uses the latest Kong version, then we
can simply hardcode the Konnect version and avoid an unnecessary
network call
@GGabriele GGabriele requested a review from a team as a code owner November 8, 2023 15:26
@GGabriele GGabriele merged commit 036b6a4 into main Nov 8, 2023
35 checks passed
@GGabriele GGabriele deleted the fix/konnect-info branch November 8, 2023 15:56
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