Skip to content

Commit

Permalink
Merge branch 'main' into konnect-integration-tests-dont-cancel-in-pro…
Browse files Browse the repository at this point in the history
…gress
  • Loading branch information
pmalek authored Jan 8, 2025
2 parents ff5d5c4 + caaf75c commit 0a54493
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 18 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Table of Contents

- [v1.42.1](#v1421)
- [v1.42.0](#v1420)
- [v1.41.4](#v1414)
- [v1.41.3](#v1413)
Expand Down Expand Up @@ -102,6 +103,14 @@
- [v0.2.0](#v020)
- [v0.1.0](#v010)

## [v1.42.1]
> Release date: 2024/12/24
### Fixed
- Updated `golang.org/x/net` to version `v0.33.0` to account for
vulnerability [CVE-2024-45338](https://avd.aquasec.com/nvd/2024/cve-2024-45338/)
[#1481](https://github.com/Kong/deck/pull/1481)

## [v1.42.0]
> Release date: 2024/12/13
Expand Down Expand Up @@ -1914,6 +1923,7 @@ No breaking changes have been introduced in this release.

Debut release of decK

[v1.42.1]: https://github.com/Kong/deck/compare/v1.42.0...v1.42.1
[v1.42.0]: https://github.com/Kong/deck/compare/v1.41.4...v1.42.0
[v1.41.4]: https://github.com/Kong/deck/compare/v1.41.3...v1.41.4
[v1.41.3]: https://github.com/Kong/deck/compare/v1.41.2...v1.41.3
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ the GitHub [release page](https://github.com/kong/deck/releases)
or install by downloading the binary:

```shell
$ curl -sL https://github.com/kong/deck/releases/download/v1.42.0/deck_1.42.0_linux_amd64.tar.gz -o deck.tar.gz
$ curl -sL https://github.com/kong/deck/releases/download/v1.42.1/deck_1.42.1_linux_amd64.tar.gz -o deck.tar.gz
$ tar -xf deck.tar.gz -C /tmp
$ sudo cp /tmp/deck /usr/local/bin/
```
Expand All @@ -84,7 +84,7 @@ If you are on Windows, you can download the binary from the GitHub
[release page](https://github.com/kong/deck/releases) or via PowerShell:

```shell
$ curl -sL https://github.com/kong/deck/releases/download/v1.42.0/deck_1.42.0_windows_amd64.tar.gz -o deck.tar.gz
$ curl -sL https://github.com/kong/deck/releases/download/v1.42.1/deck_1.42.1_windows_amd64.tar.gz -o deck.tar.gz
$ tar -xzvf deck.tar.gz
```

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ require (
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/net v0.33.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/term v0.27.0 // indirect
golang.org/x/text v0.21.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,8 @@ golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4=
golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU=
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs=
golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
Expand Down
2 changes: 1 addition & 1 deletion kong2tf/generate_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func quote(input interface{}) string {
return fmt.Sprintf("%v", v)
case string:
if strings.Contains(v, "\n") {
return fmt.Sprintf("<<EOF\n%s\nEOF", strings.TrimRight(v, "\n"))
return fmt.Sprintf("\n<<EOF\n%s\nEOF\n", strings.TrimRight(v, "\n"))
}
return fmt.Sprintf("\"%s\"", strings.ReplaceAll(v, "\"", "\\\""))
default:
Expand Down
45 changes: 33 additions & 12 deletions kong2tf/generate_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ func TestGenerateComplexLayout(t *testing.T) {
}
}
},
"field4": []
"field4": [],
"field5": "Multi\nline\nstring",
"field6": ["Multi\nline\nstring", "Multi\nline\nstring"]
}`

var entity map[string]any
Expand All @@ -34,20 +36,39 @@ func TestGenerateComplexLayout(t *testing.T) {
field1 = "basic_string"
field2 = ["list", "of", "strings"]
field3 = {
nested_field1 = "nested_string"
nested_field2 = ["list", "of", "nested", "strings"]
nested_field3 = {
nested_nested_field1 = "nested_nested_string"
nested_nested_field2 = ["list", "of", "nested", "nested", "strings"]
nested_nested_field3 = {
nested_nested_nested_field1 = "nested_nested_nested_string"
}
}
nested_field1 = "nested_string"
nested_field2 = ["list", "of", "nested", "strings"]
nested_field3 = {
nested_nested_field1 = "nested_nested_string"
nested_nested_field2 = ["list", "of", "nested", "nested", "strings"]
nested_nested_field3 = {
nested_nested_nested_field1 = "nested_nested_nested_string"
}
}
}
field4 = []
field4 = []
field5 =
<<EOF
Multi
line
string
EOF
field6 = [
<<EOF
Multi
line
string
EOF
,
<<EOF
Multi
line
string
EOF
]
service = {
id = konnect_gateway_service.some_service.id
id = konnect_gateway_service.some_service.id
}
control_plane_id = var.control_plane_id
}
Expand Down

0 comments on commit 0a54493

Please sign in to comment.