Skip to content

Commit be526a1

Browse files
Merge pull request #1826 from linode/dev
Release v2.36.0
2 parents 10d0ca1 + 867afb4 commit be526a1

Some content is hidden

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

42 files changed

+653
-149
lines changed

docs/data-sources/database_mysql_v2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ The `linode_database_mysql_v2` data source exports the following attributes:
6969

7070
* `status` - The operating status of the Managed Database.
7171

72+
* `suspended` - Whether this Managed Database is suspended.
73+
7274
* `type` - The Linode Instance type used for the nodes of the Managed Database.
7375

7476
* `updated` - When this Managed Database was last updated.

docs/data-sources/database_postgresql_v2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ The `linode_database_postgresql_v2` data source exports the following attributes
6969

7070
* `status` - The operating status of the Managed Database.
7171

72+
* `suspended` - Whether this Managed Database is suspended.
73+
7274
* `type` - The Linode Instance type used for the nodes of the Managed Database.
7375

7476
* `updated` - When this Managed Database was last updated.

docs/data-sources/lke_versions.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ The following example shows how one might use this data source to access informa
1515

1616
```hcl
1717
data "linode_lke_versions" "example" {}
18+
19+
output "example_output" {
20+
value = data.linode_lke_versions.example
21+
}
22+
23+
output "example_output_first_version" {
24+
value = data.linode_lke_versions.example.versions[0]
25+
}
1826
```
1927

2028
The following example shows how one might use this data source to access information about a Linode LKE Version
@@ -23,7 +31,15 @@ with additional information about the Linode LKE Version's tier (`enterprise` or
2331
> **_NOTE:_** This functionality may not be currently available to all users and can only be used with v4beta.
2432
2533
```hcl
26-
data "linode_lke_versions" "example" {tier = "enterprise"}
34+
data "linode_lke_versions" "example_enterprise" {tier = "enterprise"}
35+
36+
output "example_enterprise_output" {
37+
value = data.linode_lke_versions.example_enterprise
38+
}
39+
40+
output "example_enterprise_output_first_version" {
41+
value = data.linode_lke_versions.example_enterprise.versions[0]
42+
}
2743
```
2844

2945
## Argument Reference

docs/resources/database_mysql_v2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ In addition to all arguments above, the following attributes are exported:
129129

130130
* `status` - The operating status of the Managed Database.
131131

132+
* `suspended` - Whether this Managed Database should be suspended.
133+
132134
* `updated` - When this Managed Database was last updated.
133135

134136
* `version` - The Managed Database engine version. (e.g. `13.2`)

docs/resources/database_postgresql_v2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ In addition to all arguments above, the following attributes are exported:
129129

130130
* `status` - The operating status of the Managed Database.
131131

132+
* `suspended` - Whether this Managed Database should be suspended.
133+
132134
* `updated` - When this Managed Database was last updated.
133135

134136
* `version` - The Managed Database engine version. (e.g. `13.2`)

go.mod

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ module github.com/linode/terraform-provider-linode/v2
22

33
go 1.23.0
44

5+
toolchain go1.24.1
6+
57
require (
68
github.com/aws/aws-sdk-go-v2 v1.36.3
79
github.com/aws/aws-sdk-go-v2/config v1.29.9
810
github.com/aws/aws-sdk-go-v2/credentials v1.17.62
911
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.4
10-
github.com/aws/aws-sdk-go-v2/service/s3 v1.78.1
12+
github.com/aws/aws-sdk-go-v2/service/s3 v1.78.2
1113
github.com/aws/smithy-go v1.22.3
1214
github.com/go-resty/resty/v2 v2.16.5
1315
github.com/google/go-cmp v0.7.0
14-
github.com/hashicorp/go-cty v1.4.1
16+
github.com/hashicorp/go-cty v1.5.0
1517
github.com/hashicorp/go-hclog v1.6.3
1618
github.com/hashicorp/go-version v1.7.0
1719
github.com/hashicorp/terraform-plugin-framework v1.14.1
@@ -23,7 +25,7 @@ require (
2325
github.com/hashicorp/terraform-plugin-log v0.9.0
2426
github.com/hashicorp/terraform-plugin-mux v0.18.0
2527
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1
26-
github.com/hashicorp/terraform-plugin-testing v1.11.0
28+
github.com/hashicorp/terraform-plugin-testing v1.12.0
2729
github.com/linode/linodego v1.48.1
2830
github.com/linode/linodego/k8s v1.25.2
2931
github.com/stretchr/testify v1.10.0
@@ -43,7 +45,7 @@ require (
4345
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
4446
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.34 // indirect
4547
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
46-
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.6.2 // indirect
48+
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.0 // indirect
4749
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15 // indirect
4850
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.15 // indirect
4951
github.com/aws/aws-sdk-go-v2/service/sso v1.25.1 // indirect

go.sum

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.34 h1:ZNTqv4nIdE/DiBfUUfXcLZ/Spcu
3131
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.34/go.mod h1:zf7Vcd1ViW7cPqYWEHLHJkS50X0JS2IKz9Cgaj6ugrs=
3232
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 h1:eAh2A4b5IzM/lum78bZ590jy36+d/aFLgKF/4Vd1xPE=
3333
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3/go.mod h1:0yKJC/kb8sAnmlYa6Zs3QVYqaC8ug2AbnNChv5Ox3uA=
34-
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.6.2 h1:t/gZFyrijKuSU0elA5kRngP/oU3mc0I+Dvp8HwRE4c0=
35-
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.6.2/go.mod h1:iu6FSzgt+M2/x3Dk8zhycdIcHjEFb36IS8HVUVFoMg0=
34+
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.0 h1:lguz0bmOoGzozP9XfRJR1QIayEYo+2vP/No3OfLF0pU=
35+
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.0/go.mod h1:iu6FSzgt+M2/x3Dk8zhycdIcHjEFb36IS8HVUVFoMg0=
3636
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15 h1:dM9/92u2F1JbDaGooxTq18wmmFzbJRfXfVfy96/1CXM=
3737
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15/go.mod h1:SwFBy2vjtA0vZbjjaFtfN045boopadnoVPhu4Fv66vY=
3838
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.15 h1:moLQUoVq91LiqT1nbvzDukyqAlCv89ZmwaHw/ZFlFZg=
3939
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.15/go.mod h1:ZH34PJUc8ApjBIfgQCFvkWcUDBtl/WTD+uiYHjd8igA=
40-
github.com/aws/aws-sdk-go-v2/service/s3 v1.78.1 h1:1M0gSbyP6q06gl3384wpoKPaH9G16NPqZFieEhLboSU=
41-
github.com/aws/aws-sdk-go-v2/service/s3 v1.78.1/go.mod h1:4qzsZSzB/KiX2EzDjs9D7A8rI/WGJxZceVJIHqtJjIU=
40+
github.com/aws/aws-sdk-go-v2/service/s3 v1.78.2 h1:jIiopHEV22b4yQP2q36Y0OmwLbsxNWdWwfZRR5QRRO4=
41+
github.com/aws/aws-sdk-go-v2/service/s3 v1.78.2/go.mod h1:U5SNqwhXB3Xe6F47kXvWihPl/ilGaEDe8HD/50Z9wxc=
4242
github.com/aws/aws-sdk-go-v2/service/sso v1.25.1 h1:8JdC7Gr9NROg1Rusk25IcZeTO59zLxsKgE0gkh5O6h0=
4343
github.com/aws/aws-sdk-go-v2/service/sso v1.25.1/go.mod h1:qs4a9T5EMLl/Cajiw2TcbNt2UNo/Hqlyp+GiuG4CFDI=
4444
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.29.1 h1:KwuLovgQPcdjNMfFt9OhUd9a2OwcOKhxfvF4glTzLuA=
@@ -119,8 +119,8 @@ github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuD
119119
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
120120
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
121121
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
122-
github.com/hashicorp/go-cty v1.4.1 h1:T4i4kbEKuyMoe4Ujh52Ud07VXr05dnP/Si9JiVDpx3Y=
123-
github.com/hashicorp/go-cty v1.4.1/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs=
122+
github.com/hashicorp/go-cty v1.5.0 h1:EkQ/v+dDNUqnuVpmS5fPqyY71NXVgT5gf32+57xY8g0=
123+
github.com/hashicorp/go-cty v1.5.0/go.mod h1:lFUCG5kd8exDobgSfyj4ONE/dc822kiYMguVKdHGMLM=
124124
github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k=
125125
github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
126126
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
@@ -162,8 +162,8 @@ github.com/hashicorp/terraform-plugin-mux v0.18.0 h1:7491JFSpWyAe0v9YqBT+kel7mzH
162162
github.com/hashicorp/terraform-plugin-mux v0.18.0/go.mod h1:Ho1g4Rr8qv0qTJlcRKfjjXTIO67LNbDtM6r+zHUNHJQ=
163163
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1 h1:WNMsTLkZf/3ydlgsuXePa3jvZFwAJhruxTxP/c1Viuw=
164164
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1/go.mod h1:P6o64QS97plG44iFzSM6rAn6VJIC/Sy9a9IkEtl79K4=
165-
github.com/hashicorp/terraform-plugin-testing v1.11.0 h1:MeDT5W3YHbONJt2aPQyaBsgQeAIckwPX41EUHXEn29A=
166-
github.com/hashicorp/terraform-plugin-testing v1.11.0/go.mod h1:WNAHQ3DcgV/0J+B15WTE6hDvxcUdkPPpnB1FR3M910U=
165+
github.com/hashicorp/terraform-plugin-testing v1.12.0 h1:tpIe+T5KBkA1EO6aT704SPLedHUo55RenguLHcaSBdI=
166+
github.com/hashicorp/terraform-plugin-testing v1.12.0/go.mod h1:jbDQUkT9XRjAh1Bvyufq+PEH1Xs4RqIdpOQumSgSXBM=
167167
github.com/hashicorp/terraform-registry-address v0.2.4 h1:JXu/zHB2Ymg/TGVCRu10XqNa4Sh2bWcqCNyKWjnCPJA=
168168
github.com/hashicorp/terraform-registry-address v0.2.4/go.mod h1:tUNYTVyCtU4OIGXXMDp7WNcJ+0W1B4nmstVDgHMjfAU=
169169
github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ=
@@ -329,7 +329,6 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX
329329
golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y=
330330
golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g=
331331
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
332-
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
333332
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
334333
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
335334
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=

linode/accountsettings/framework_resource.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (r *Resource) Create(
3333
req resource.CreateRequest,
3434
resp *resource.CreateResponse,
3535
) {
36-
tflog.Debug(ctx, "Create linode_account_settings")
36+
tflog.Debug(ctx, "Create "+r.Config.Name)
3737

3838
var plan AccountSettingsModel
3939

@@ -59,7 +59,7 @@ func (r *Resource) Read(
5959
req resource.ReadRequest,
6060
resp *resource.ReadResponse,
6161
) {
62-
tflog.Debug(ctx, "Read linode_account_settings")
62+
tflog.Debug(ctx, "Read "+r.Config.Name)
6363

6464
client := r.Meta.Client
6565

@@ -106,7 +106,7 @@ func (r *Resource) Update(
106106
req resource.UpdateRequest,
107107
resp *resource.UpdateResponse,
108108
) {
109-
tflog.Debug(ctx, "Update linode_account_settings")
109+
tflog.Debug(ctx, "Update "+r.Config.Name)
110110

111111
var plan, state AccountSettingsModel
112112

@@ -142,7 +142,7 @@ func (r *Resource) Delete(
142142
req resource.DeleteRequest,
143143
resp *resource.DeleteResponse,
144144
) {
145-
tflog.Debug(ctx, "Delete linode_account_settings")
145+
tflog.Debug(ctx, "Delete "+r.Config.Name)
146146
}
147147

148148
func (r *Resource) updateAccountSettings(

linode/databasemysqlv2/framework_datasource_schema.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ var frameworkDatasourceSchema = schema.Schema{
122122
Computed: true,
123123
Description: "The operating status of the Managed Database.",
124124
},
125+
"suspended": schema.BoolAttribute{
126+
Description: "Whether this database is suspended.",
127+
Computed: true,
128+
},
125129
"updated": schema.StringAttribute{
126130
Description: "When this Managed Database was last updated.",
127131
Computed: true,

0 commit comments

Comments
 (0)