Skip to content

Commit 1853cad

Browse files
Merge pull request #1812 from linode/dev
v2.35
2 parents b682ea8 + 28ad19c commit 1853cad

23 files changed

+729
-162
lines changed

.github/workflows/integration_tests.yml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ jobs:
151151
runs-on: ubuntu-latest
152152
needs: [integration_tests]
153153
if: always() && github.repository == 'linode/terraform-provider-linode' # Run even if integration tests fail and only on main repository
154+
outputs:
155+
summary: ${{ steps.set-test-summary.outputs.summary }}
154156

155157
steps:
156158
- name: Checkout code
@@ -189,12 +191,25 @@ jobs:
189191
LINODE_CLI_OBJ_ACCESS_KEY: ${{ secrets.LINODE_CLI_OBJ_ACCESS_KEY }}
190192
LINODE_CLI_OBJ_SECRET_KEY: ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}
191193

194+
- name: Generate test summary and save to output
195+
id: set-test-summary
196+
run: |
197+
filename=$(ls | grep -E '^[0-9]{12}_terraform_merged_report.xml$')
198+
test_output=$(python3 e2e_scripts/tod_scripts/generate_test_summary.py "${filename}")
199+
echo "$test_output"
200+
{
201+
echo 'summary<<EOF'
202+
echo "$test_output"
203+
echo EOF
204+
} >> "$GITHUB_OUTPUT"
205+
192206
notify-slack:
193207
runs-on: ubuntu-latest
194-
needs: [integration_tests]
208+
needs: [integration_tests, process-upload-report]
195209
if: always() && github.repository == 'linode/terraform-provider-linode' # Run even if integration tests fail and only on main repository
196210
steps:
197211
- name: Notify Slack
212+
id: main_message
198213
uses: slackapi/[email protected]
199214
with:
200215
method: chat.postMessage
@@ -205,7 +220,7 @@ jobs:
205220
- type: section
206221
text:
207222
type: mrkdwn
208-
text: ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:"
223+
text: ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* ${{ needs.integration_tests.result == 'success' && ':white_check_mark:' || ':failed:' }}"
209224
- type: divider
210225
- type: section
211226
fields:
@@ -223,4 +238,15 @@ jobs:
223238
- type: context
224239
elements:
225240
- type: mrkdwn
226-
text: "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"
241+
text: "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"
242+
243+
- name: Test summary thread
244+
if: success()
245+
uses: slackapi/[email protected]
246+
with:
247+
method: chat.postMessage
248+
token: ${{ secrets.SLACK_BOT_TOKEN }}
249+
payload: |
250+
channel: ${{ secrets.SLACK_CHANNEL_ID }}
251+
thread_ts: "${{ steps.main_message.outputs.ts }}"
252+
text: "${{ needs.process-upload-report.outputs.summary }}"

docs/data-sources/lke_version.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
page_title: "Linode: linode_lke_version"
3+
description: |-
4+
Provides details about a Kubernetes version available for deployment to a Kubernetes cluster.
5+
---
6+
7+
# linode\_lke\_version
8+
9+
Provides details about a specific Kubernetes versions available for deployment to a Kubernetes cluster.
10+
For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-lke-version).
11+
12+
## Example Usage
13+
14+
The following example shows how one might use this data source to access information about a Linode LKE Version.
15+
16+
```hcl
17+
data "linode_lke_version" "example" {id = "1.31"}
18+
```
19+
20+
The following example shows how one might use this data source to access information about a Linode LKE Version
21+
with additional information about the Linode LKE Version's tier (`enterprise` or `standard`).
22+
23+
> **_NOTE:_** This functionality may not be currently available to all users and can only be used with v4beta.
24+
25+
```hcl
26+
data "linode_lke_version" "example" {
27+
id = "1.31"
28+
tier = "standard"
29+
}
30+
```
31+
32+
## Argument Reference
33+
34+
The following arguments are supported:
35+
36+
* `id` - (Required) The unique ID of this Linode LKE Version.
37+
38+
* `tier` - (Optional) The tier (`standard` or `enterprise`) of Linode LKE Version to fetch.
39+
40+
## Attributes Reference
41+
42+
The Linode LKE Version datasource exports the following attributes:
43+
44+
* `id` - The Kubernetes version numbers available for deployment to a Kubernetes cluster in the format of [major].[minor], and the latest supported patch version.
45+
46+
* `tier` - The Kubernetes version tier. Only exported if `tier` was provided when using the datasource.

docs/data-sources/lke_versions.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,25 @@ The following example shows how one might use this data source to access informa
1717
data "linode_lke_versions" "example" {}
1818
```
1919

20+
The following example shows how one might use this data source to access information about a Linode LKE Version
21+
with additional information about the Linode LKE Version's tier (`enterprise` or `standard`).
22+
23+
> **_NOTE:_** This functionality may not be currently available to all users and can only be used with v4beta.
24+
25+
```hcl
26+
data "linode_lke_versions" "example" {tier = "enterprise"}
27+
```
28+
29+
## Argument Reference
30+
31+
The following arguments are supported:
32+
33+
* `tier` - (Optional) The tier (`standard` or `enterprise`) of Linode LKE Versions to fetch.
34+
2035
## Attributes Reference
2136

2237
Each Linode LKE Version will be stored in the `versions` attribute and will export the following attributes:
2338

2439
* `id` - The Kubernetes version numbers available for deployment to a Kubernetes cluster in the format of [major].[minor], and the latest supported patch version.
40+
41+
* `tier` - The Kubernetes version tier. Only exported if `tier` was provided when using the datasource.

go.mod

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ module github.com/linode/terraform-provider-linode/v2
33
go 1.23.0
44

55
require (
6-
github.com/aws/aws-sdk-go-v2 v1.36.2
7-
github.com/aws/aws-sdk-go-v2/config v1.29.6
8-
github.com/aws/aws-sdk-go-v2/credentials v1.17.59
6+
github.com/aws/aws-sdk-go-v2 v1.36.3
7+
github.com/aws/aws-sdk-go-v2/config v1.29.9
8+
github.com/aws/aws-sdk-go-v2/credentials v1.17.62
99
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.4
10-
github.com/aws/aws-sdk-go-v2/service/s3 v1.77.1
11-
github.com/aws/smithy-go v1.22.2
12-
github.com/go-resty/resty/v2 v2.16.3
10+
github.com/aws/aws-sdk-go-v2/service/s3 v1.78.1
11+
github.com/aws/smithy-go v1.22.3
12+
github.com/go-resty/resty/v2 v2.16.5
1313
github.com/google/go-cmp v0.7.0
14-
github.com/hashicorp/go-cty v1.4.1-0.20200723130312-85980079f637
14+
github.com/hashicorp/go-cty v1.4.1
1515
github.com/hashicorp/go-hclog v1.6.3
1616
github.com/hashicorp/go-version v1.7.0
1717
github.com/hashicorp/terraform-plugin-framework v1.14.1
@@ -24,31 +24,31 @@ require (
2424
github.com/hashicorp/terraform-plugin-mux v0.18.0
2525
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1
2626
github.com/hashicorp/terraform-plugin-testing v1.11.0
27-
github.com/linode/linodego v1.47.0
27+
github.com/linode/linodego v1.48.1
2828
github.com/linode/linodego/k8s v1.25.2
2929
github.com/stretchr/testify v1.10.0
30-
golang.org/x/crypto v0.34.0
31-
golang.org/x/net v0.35.0
32-
golang.org/x/sync v0.11.0
30+
golang.org/x/crypto v0.36.0
31+
golang.org/x/net v0.37.0
32+
golang.org/x/sync v0.12.0
3333
)
3434

3535
require (
3636
github.com/ProtonMail/go-crypto v1.1.3 // indirect
3737
github.com/agext/levenshtein v1.2.2 // indirect
3838
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
3939
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect
40-
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.28 // indirect
41-
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.33 // indirect
42-
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.33 // indirect
43-
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.2 // indirect
44-
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.33 // indirect
40+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.30 // indirect
41+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.34 // indirect
42+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.34 // indirect
43+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
44+
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.34 // indirect
4545
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.1 // indirect
47-
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.14 // indirect
48-
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.14 // indirect
49-
github.com/aws/aws-sdk-go-v2/service/sso v1.24.15 // indirect
50-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.14 // indirect
51-
github.com/aws/aws-sdk-go-v2/service/sts v1.33.14 // indirect
46+
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.6.2 // indirect
47+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.15 // indirect
48+
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.15 // indirect
49+
github.com/aws/aws-sdk-go-v2/service/sso v1.25.1 // indirect
50+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.29.1 // indirect
51+
github.com/aws/aws-sdk-go-v2/service/sts v1.33.17 // indirect
5252
github.com/cloudflare/circl v1.3.7 // indirect
5353
github.com/davecgh/go-spew v1.1.1 // indirect
5454
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
@@ -100,10 +100,10 @@ require (
100100
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
101101
github.com/zclconf/go-cty v1.16.2 // indirect
102102
golang.org/x/mod v0.22.0 // indirect
103-
golang.org/x/oauth2 v0.25.0 // indirect
104-
golang.org/x/sys v0.30.0 // indirect
105-
golang.org/x/term v0.29.0 // indirect
106-
golang.org/x/text v0.22.0 // indirect
103+
golang.org/x/oauth2 v0.27.0 // indirect
104+
golang.org/x/sys v0.31.0 // indirect
105+
golang.org/x/term v0.30.0 // indirect
106+
golang.org/x/text v0.23.0 // indirect
107107
golang.org/x/time v0.6.0 // indirect
108108
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
109109
google.golang.org/appengine v1.6.8 // indirect

0 commit comments

Comments
 (0)