-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not fetch kong version when running
validate
decK used to fetch the running Kong version in order to gate route regex patterns validation. This is problematic in the case users don't have access to the `/` endpoint, which is the one used to fetch the version of the runtime. This commit removes the need of fetching the Kong version entirely by relying on the `_format_version` field from the config file instead.
- Loading branch information
Showing
4 changed files
with
77 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package utils | ||
|
||
const ( | ||
DefaultFormatVersion = "1.1" | ||
FormatVersion30 = "3.0" | ||
) |
Oops, something went wrong.