From 3ffa57446e31fb1418e22f58f90f317e5486bca6 Mon Sep 17 00:00:00 2001 From: Gabriele Gerbino Date: Tue, 27 Sep 2022 17:04:20 +0200 Subject: [PATCH] fix: dump with Konnect is missing Kong version Recently we made `decK` more aware of the `_format_version` value, which require fetching the Kong version from Admin API. This is not possible for Konnect right now, so we just hardcoded it for `sync`, but missed it for the `dump` command. This commit is fixing it. --- CHANGELOG.md | 11 +++++++++++ cmd/common_konnect.go | 1 + 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6664fb79a..6bbc28462 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Table of Contents +- [v1.15.1](#v1151) - [v1.15.0](#v1150) - [v1.14.0](#v1140) - [v1.13.0](#v1130) @@ -44,6 +45,15 @@ - [v0.2.0](#v020) - [v0.1.0](#v010) +## [v1.15.1] + +> Release date: 2022/09/27 + +### Fixes + +- Fix decK dump when running against Konnect + [#758](https://github.com/Kong/deck/pull/758) + ## [v1.15.0] > Release date: 2022/09/26 @@ -1021,6 +1031,7 @@ No breaking changes have been introduced in this release. Debut release of decK +[v1.15.1]: https://github.com/kong/deck/compare/v1.15.0...v1.15.1 [v1.15.0]: https://github.com/kong/deck/compare/v1.14.0...v1.15.0 [v1.14.0]: https://github.com/kong/deck/compare/v1.13.0...v1.14.0 [v1.13.0]: https://github.com/kong/deck/compare/v1.12.4...v1.13.0 diff --git a/cmd/common_konnect.go b/cmd/common_konnect.go index 31537a671..de5e6207c 100644 --- a/cmd/common_konnect.go +++ b/cmd/common_konnect.go @@ -161,6 +161,7 @@ func dumpKonnectV2(ctx context.Context) error { FileFormat: file.Format(strings.ToUpper(konnectDumpCmdStateFormat)), WithID: dumpWithID, RuntimeGroupName: konnectRuntimeGroup, + KongVersion: defaultFetchedKongVersion, }) }