Skip to content

Commit 6060900

Browse files
bpaquetcyrilgdna-suenamitimothegenzmerTimothe Genzmer
authored
Merge upstream v1.20 (#7)
Co-authored-by: Cyril Gaudin <[email protected]> Co-authored-by: Akira Suenami <[email protected]> Co-authored-by: timothegenzmer <[email protected]> Co-authored-by: Timothe Genzmer <[email protected]> Co-authored-by: sareno <[email protected]> Co-authored-by: felipe-minka <[email protected]> Co-authored-by: Jérémy Levilain <[email protected]> Co-authored-by: Felipe Reyes <[email protected]> Co-authored-by: chris-minka <[email protected]> Co-authored-by: Fábio Paiva <[email protected]> Co-authored-by: Nico Carl <[email protected]> Co-authored-by: Enzo Cappa <[email protected]> Co-authored-by: Kayssar Daher <[email protected]> Co-authored-by: Kayssar Daher <[email protected]> Co-authored-by: Majid Burney <[email protected]> Co-authored-by: Khaled Khalifa <[email protected]> Co-authored-by: Marvin Willms <[email protected]> Co-authored-by: nguyenhoaibao <[email protected]> Co-authored-by: SpencerBinXia <[email protected]> Co-authored-by: Warnar Boekkooi <[email protected]> Co-authored-by: Jean-Louis Giordano <[email protected]> Co-authored-by: Alec Rabold <[email protected]> Co-authored-by: Adrien Letournel <[email protected]> Co-authored-by: Thomas Boussekey <[email protected]> Co-authored-by: Jernej Porenta <[email protected]> Co-authored-by: Kyle Johnson <[email protected]>
1 parent 64e7459 commit 6060900

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+7066
-396
lines changed

.github/workflows/golangci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
uses: actions/[email protected]
1414

1515
- name: Setup Go
16-
uses: actions/setup-go@v2
16+
uses: actions/setup-go@v4
1717
with:
18-
go-version: 1.17.x
18+
go-version: 1.20.x
1919

2020
- run: go mod vendor
2121

2222
- name: Run golangci-lint
23-
uses: golangci/golangci-lint-action@v3.1.0
23+
uses: golangci/golangci-lint-action@v3
2424
with:
25-
version: v1.40
25+
version: v1.53

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
name: Set up Go
2929
uses: actions/setup-go@v3
3030
with:
31-
go-version: 1.18
31+
go-version: '1.20'
3232
-
3333
name: Import GPG key
3434
id: import_gpg

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
pgversion: [9, 10, 11, 12, 13, 14]
15+
pgversion: [14, 13, 12, 11]
1616

1717
env:
1818
PGVERSION: ${{ matrix.pgversion }}
1919

2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v3
2323

2424
- name: Set up Go
25-
uses: actions/setup-go@v2
25+
uses: actions/setup-go@v4
2626
with:
27-
go-version: 1.16
27+
go-version: '1.20'
2828

2929
- name: test
3030
run: make test

CHANGELOG.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,49 @@
1-
## Unreleased
1+
## 1.19.0 (March 18, 2023)
2+
3+
* **New data sources**: `postgresql_schemas`, `postgresql_sequences` and `postgresql_tables` - @SpencerBinXia
4+
[#214](https://github.com/cyrilgdn/terraform-provider-postgresql/pull/214)
5+
6+
* `postgresql_grant`: Add column level access - @kda-jt @wilsonjackson
7+
[#135](https://github.com/cyrilgdn/terraform-provider-postgresql/pull/135)
8+
9+
* `postgresql_function`: Support terraform import - @khkhalifa
10+
[#275](https://github.com/cyrilgdn/terraform-provider-postgresql/pull/275)
11+
12+
* `postgresql_grant`: Support arguments in function name - @marvin-kolja
13+
[#228](https://github.com/cyrilgdn/terraform-provider-postgresql/pull/228)
14+
15+
FIX:
16+
17+
* `postgresql_user_mapping`: Fix for RDS Aurora - @fabiopaiva
18+
[#274](https://github.com/cyrilgdn/terraform-provider-postgresql/pull/274)
19+
20+
21+
## 1.18.0 (November 26, 2022)
22+
23+
* **New resource**: `postgresql_server` and `postgresql_user_mapping` - @fabiopaiva
24+
[#220](https://github.com/cyrilgdn/terraform-provider-postgresql/pull/220)
25+
26+
* **New resource**: `postgresql_subscription` - @nicarl
27+
[#244](https://github.com/cyrilgdn/terraform-provider-postgresql/pull/244)
28+
29+
* Allow to configure AWS Region with AWS IAM Auth - @bpaquet
30+
[#260](https://github.com/cyrilgdn/terraform-provider-postgresql/pull/260)
31+
32+
* Create temporary file for `GOOGLE_APPLICATION_CREDENTIALS` in Terraform cloud - @minkainc-opensource
33+
[#249](https://github.com/cyrilgdn/terraform-provider-postgresql/pull/249)
34+
35+
FIX:
36+
37+
* `postgresql_grant`: Concurrency issue on database privileges - @timothegenzmer
38+
[#224](https://github.com/cyrilgdn/terraform-provider-postgresql/pull/224)
39+
40+
* `postgresql_grant`: Remove `TEMP` privileges for database - @cyrilgdn
41+
[#243](https://github.com/cyrilgdn/terraform-provider-postgresql/pull/243)
42+
43+
DEV IMPROVEMENTS:
44+
45+
* Update Postgres versions in tests - @cyrilgdn
46+
247

348
## 1.17.1 (August 19, 2022)
449

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build: fmtcheck
88
go install
99

1010
test: fmtcheck
11-
go test -i $(TEST) || exit 1
11+
go test $(TEST) || exit 1
1212
echo $(TEST) | \
1313
xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4
1414

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Building The Provider
2020
Clone repository to: `$GOPATH/src/github.com/cyrilgdn/terraform-provider-postgresql`
2121

2222
```sh
23-
$ mkdir -p $GOPATH/src/github.com/terraform-providers; cd $GOPATH/src/github.com/terraform-providers
23+
$ mkdir -p $GOPATH/src/github.com/cyrilgdn; cd $GOPATH/src/github.com/cyrilgdn
2424
$ git clone [email protected]:cyrilgdn/terraform-provider-postgresql
2525
```
2626

go.mod

Lines changed: 66 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,93 @@
11
module github.com/terraform-providers/terraform-provider-postgresql
22

3-
go 1.17
3+
go 1.20
44

55
require (
6-
github.com/aws/aws-sdk-go-v2 v1.16.2
7-
github.com/aws/aws-sdk-go-v2/config v1.15.3
8-
github.com/aws/aws-sdk-go-v2/feature/rds/auth v1.1.6
6+
github.com/aws/aws-sdk-go-v2 v1.18.1
7+
github.com/aws/aws-sdk-go-v2/config v1.18.27
8+
github.com/aws/aws-sdk-go-v2/feature/rds/auth v1.2.12
99
github.com/blang/semver v3.5.1+incompatible
10-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.15.0
11-
github.com/lib/pq v1.10.4
10+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1
11+
github.com/lib/pq v1.10.9
1212
github.com/sean-/postgresql-acl v0.0.0-20161225120419-d10489e5d217
13-
gocloud.dev v0.25.0
14-
golang.org/x/net v0.0.0-20220401154927-543a649e0bdd
13+
github.com/stretchr/testify v1.8.4
14+
gocloud.dev v0.29.0
15+
golang.org/x/net v0.11.0
16+
golang.org/x/oauth2 v0.9.0
1517
)
1618

1719
require (
18-
cloud.google.com/go/compute v1.5.0 // indirect
20+
cloud.google.com/go/compute v1.20.0 // indirect
21+
cloud.google.com/go/compute/metadata v0.2.3 // indirect
1922
contrib.go.opencensus.io/integrations/ocsql v0.1.7 // indirect
20-
github.com/GoogleCloudPlatform/cloudsql-proxy v1.29.0 // indirect
21-
github.com/agext/levenshtein v1.2.2 // indirect
23+
github.com/GoogleCloudPlatform/cloudsql-proxy v1.33.7 // indirect
24+
github.com/agext/levenshtein v1.2.3 // indirect
2225
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
23-
github.com/aws/aws-sdk-go-v2/credentials v1.11.2 // indirect
24-
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.3 // indirect
25-
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.9 // indirect
26-
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.3 // indirect
27-
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.10 // indirect
28-
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.3 // indirect
29-
github.com/aws/aws-sdk-go-v2/service/sso v1.11.3 // indirect
30-
github.com/aws/aws-sdk-go-v2/service/sts v1.16.3 // indirect
31-
github.com/aws/smithy-go v1.11.2 // indirect
26+
github.com/aws/aws-sdk-go-v2/credentials v1.13.26 // indirect
27+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.4 // indirect
28+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.34 // indirect
29+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.28 // indirect
30+
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.35 // indirect
31+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.28 // indirect
32+
github.com/aws/aws-sdk-go-v2/service/sso v1.12.12 // indirect
33+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.12 // indirect
34+
github.com/aws/aws-sdk-go-v2/service/sts v1.19.2 // indirect
35+
github.com/aws/smithy-go v1.13.5 // indirect
3236
github.com/davecgh/go-spew v1.1.1 // indirect
33-
github.com/fatih/color v1.7.0 // indirect
37+
github.com/fatih/color v1.15.0 // indirect
3438
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
35-
github.com/golang/protobuf v1.5.2 // indirect
36-
github.com/google/go-cmp v0.5.8 // indirect
39+
github.com/golang/protobuf v1.5.3 // indirect
40+
github.com/google/go-cmp v0.5.9 // indirect
41+
github.com/google/s2a-go v0.1.4 // indirect
42+
github.com/google/uuid v1.3.0 // indirect
3743
github.com/google/wire v0.5.0 // indirect
38-
github.com/googleapis/gax-go/v2 v2.2.0 // indirect
39-
github.com/hashicorp/errwrap v1.0.0 // indirect
44+
github.com/googleapis/enterprise-certificate-proxy v0.2.4 // indirect
45+
github.com/googleapis/gax-go/v2 v2.11.0 // indirect
46+
github.com/hashicorp/errwrap v1.1.0 // indirect
4047
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
4148
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
4249
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
43-
github.com/hashicorp/go-hclog v1.2.0 // indirect
50+
github.com/hashicorp/go-hclog v1.5.0 // indirect
4451
github.com/hashicorp/go-multierror v1.1.1 // indirect
45-
github.com/hashicorp/go-plugin v1.4.3 // indirect
52+
github.com/hashicorp/go-plugin v1.4.10 // indirect
4653
github.com/hashicorp/go-uuid v1.0.3 // indirect
47-
github.com/hashicorp/go-version v1.4.0 // indirect
48-
github.com/hashicorp/hc-install v0.3.1 // indirect
49-
github.com/hashicorp/hcl/v2 v2.12.0 // indirect
54+
github.com/hashicorp/go-version v1.6.0 // indirect
55+
github.com/hashicorp/hc-install v0.5.0 // indirect
56+
github.com/hashicorp/hcl/v2 v2.17.0 // indirect
5057
github.com/hashicorp/logutils v1.0.0 // indirect
51-
github.com/hashicorp/terraform-exec v0.16.1 // indirect
52-
github.com/hashicorp/terraform-json v0.13.0 // indirect
53-
github.com/hashicorp/terraform-plugin-go v0.9.0 // indirect
54-
github.com/hashicorp/terraform-plugin-log v0.4.0 // indirect
55-
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896 // indirect
56-
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
57-
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
58-
github.com/mattn/go-colorable v0.1.6 // indirect
59-
github.com/mattn/go-isatty v0.0.12 // indirect
58+
github.com/hashicorp/terraform-exec v0.18.1 // indirect
59+
github.com/hashicorp/terraform-json v0.16.0 // indirect
60+
github.com/hashicorp/terraform-plugin-go v0.15.0 // indirect
61+
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
62+
github.com/hashicorp/terraform-registry-address v0.2.1 // indirect
63+
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
64+
github.com/hashicorp/yamux v0.1.1 // indirect
65+
github.com/mattn/go-colorable v0.1.13 // indirect
66+
github.com/mattn/go-isatty v0.0.19 // indirect
6067
github.com/mitchellh/copystructure v1.2.0 // indirect
6168
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
62-
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
69+
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
6370
github.com/mitchellh/mapstructure v1.5.0 // indirect
6471
github.com/mitchellh/reflectwalk v1.0.2 // indirect
65-
github.com/oklog/run v1.0.0 // indirect
72+
github.com/oklog/run v1.1.0 // indirect
73+
github.com/pmezard/go-difflib v1.0.0 // indirect
6674
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
67-
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
68-
github.com/vmihailenco/tagparser v0.1.1 // indirect
69-
github.com/zclconf/go-cty v1.10.0 // indirect
70-
go.opencensus.io v0.23.0 // indirect
71-
go.uber.org/atomic v1.9.0 // indirect
72-
go.uber.org/multierr v1.8.0 // indirect
73-
go.uber.org/zap v1.21.0 // indirect
74-
golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29 // indirect
75-
golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a // indirect
76-
golang.org/x/sys v0.0.0-20220330033206-e17cdc41300f // indirect
77-
golang.org/x/text v0.3.7 // indirect
78-
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 // indirect
79-
google.golang.org/api v0.74.0 // indirect
75+
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
76+
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
77+
github.com/zclconf/go-cty v1.13.2 // indirect
78+
go.opencensus.io v0.24.0 // indirect
79+
go.uber.org/atomic v1.11.0 // indirect
80+
go.uber.org/multierr v1.11.0 // indirect
81+
go.uber.org/zap v1.24.0 // indirect
82+
golang.org/x/crypto v0.10.0 // indirect
83+
golang.org/x/mod v0.8.0 // indirect
84+
golang.org/x/sys v0.9.0 // indirect
85+
golang.org/x/text v0.10.0 // indirect
86+
golang.org/x/time v0.3.0 // indirect
87+
google.golang.org/api v0.128.0 // indirect
8088
google.golang.org/appengine v1.6.7 // indirect
81-
google.golang.org/genproto v0.0.0-20220401170504-314d38edb7de // indirect
82-
google.golang.org/grpc v1.45.0 // indirect
83-
google.golang.org/protobuf v1.28.0 // indirect
89+
google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect
90+
google.golang.org/grpc v1.56.0 // indirect
91+
google.golang.org/protobuf v1.30.0 // indirect
92+
gopkg.in/yaml.v3 v3.0.1 // indirect
8493
)

0 commit comments

Comments
 (0)