Skip to content

Commit 024698a

Browse files
committed
Merge with main
1 parent af81177 commit 024698a

File tree

86 files changed

+2954
-362
lines changed

Some content is hidden

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

86 files changed

+2954
-362
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ jobs:
66
lint:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v5
9+
- uses: actions/checkout@v6
1010
- uses: actions/setup-go@v6
1111
with:
1212
go-version: 'stable'
1313

1414
- name: Check docs
1515
run: make docs-check
1616
- name: Golangci-lint
17-
uses: golangci/golangci-lint-action@v8
17+
uses: golangci/golangci-lint-action@v9
1818
- name: Tidy
1919
run: go mod tidy
2020
- run: make deps
@@ -25,7 +25,7 @@ jobs:
2525
tests:
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@v5
28+
- uses: actions/checkout@v6
2929
- uses: actions/setup-go@v6
3030
with:
3131
go-version: 'stable'
@@ -40,7 +40,7 @@ jobs:
4040
GO111MODULE: on
4141
steps:
4242
- name: Checkout Source
43-
uses: actions/checkout@v5
43+
uses: actions/checkout@v6
4444
- name: Run Gosec Security Scanner
4545
uses: securego/gosec@master
4646
with:

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
build-mode: autobuild
2424
steps:
2525
- name: Checkout repository
26-
uses: actions/checkout@v5
26+
uses: actions/checkout@v6
2727

2828
- name: Initialize CodeQL
2929
uses: github/codeql-action/init@v4

.github/workflows/dependencies_review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout Repository
13-
uses: actions/checkout@v5
13+
uses: actions/checkout@v6
1414
- name: Dependency Review
1515
uses: actions/dependency-review-action@v4
1616
with:

.github/workflows/integration_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
steps:
3434
- name: Checkout Repository
35-
uses: actions/checkout@v5
35+
uses: actions/checkout@v6
3636
with:
3737
fetch-depth: 0
3838
submodules: 'recursive'
@@ -61,7 +61,7 @@ jobs:
6161
echo "LINODE_CONSUMER_TOKEN=${{ secrets.LINODE_TOKEN_USER_2 }}" >> $GITHUB_ENV
6262
;;
6363
"USER_2")
64-
echo "TEST_SUITE=databasemysqlv2,firewall,firewallsettings,firewalltemplate,firewalltemplates,firewalldevice,firewalls,image,images,instancenetworking,instancesharedips,instancetype,instancetypes,ipv6range,ipv6ranges,kernel,kernels,nb,nbconfig,nbconfigs,nbnode,nbs,nbvpc,nbvpcs,sshkey,sshkeys,vlan,volume,volumes,vpc,vpcs,vpcsubnets,vpcips" >> $GITHUB_ENV
64+
echo "TEST_SUITE=databasemysqlv2,firewall,firewallsettings,firewalltemplate,firewalltemplates,firewalldevice,firewalls,image,images,instancenetworking,instancesharedips,instancetype,instancetypes,ipv6range,ipv6ranges,kernel,kernels,lock,locks,nb,nbconfig,nbconfigs,nbnode,nbs,nbvpc,nbvpcs,sshkey,sshkeys,vlan,volume,volumes,vpc,vpcs,vpcsubnets,vpcips" >> $GITHUB_ENV
6565
echo "LINODE_TOKEN=${{ secrets.LINODE_TOKEN_USER_2 }}" >> $GITHUB_ENV
6666
;;
6767
"USER_3")
@@ -101,7 +101,7 @@ jobs:
101101

102102
steps:
103103
- name: Checkout code
104-
uses: actions/checkout@v5
104+
uses: actions/checkout@v6
105105
with:
106106
fetch-depth: 0
107107
submodules: 'recursive'
@@ -160,7 +160,7 @@ jobs:
160160

161161
steps:
162162
- name: Checkout code
163-
uses: actions/checkout@v5
163+
uses: actions/checkout@v6
164164
with:
165165
fetch-depth: 0
166166
submodules: 'recursive'

.github/workflows/integration_tests_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
5252
# Check out merge commit
5353
- name: Checkout PR
54-
uses: actions/checkout@v5
54+
uses: actions/checkout@v6
5555
with:
5656
ref: ${{ inputs.sha }}
5757
fetch-depth: 0
@@ -127,7 +127,7 @@ jobs:
127127

128128
steps:
129129
- name: Checkout code
130-
uses: actions/checkout@v5
130+
uses: actions/checkout@v6
131131
with:
132132
fetch-depth: 0
133133
submodules: 'recursive'

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
-
2020
name: Checkout
21-
uses: actions/checkout@v5
21+
uses: actions/checkout@v6
2222
-
2323
name: Run Labeler
2424
uses: crazy-max/ghaction-github-labeler@24d110aa46a59976b8a7f35518cb7f14f434c916

.github/workflows/nightly_smoke_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout code
21-
uses: actions/checkout@v5
21+
uses: actions/checkout@v6
2222
with:
2323
fetch-depth: 0
2424
submodules: 'recursive'

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- "https://registry.opentofu.org/v1"
3636
- "https://registry.terraform.io/v1"
3737
steps:
38-
- uses: actions/checkout@v5
38+
- uses: actions/checkout@v6
3939
- uses: actions/github-script@v8
4040
env:
4141
REGISTRY: ${{ matrix.registry }}

docs/data-sources/lock.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
page_title: "Linode: linode_lock"
3+
description: |-
4+
Provides details about a Linode Lock.
5+
---
6+
7+
# Data Source: linode\_lock
8+
9+
~> **Early Access:** Lock functionality is in early access and may not be available to all users.
10+
11+
~> **Important** Only unrestricted users can view locks. Restricted users cannot access lock information even if they have permissions for the resource.
12+
13+
Provides information about a Linode Lock. Locks prevent accidental deletion, rebuild operations, and service transfers of resources.
14+
15+
For more information, see the Linode APIv4 docs (TBD).
16+
17+
## Example Usage
18+
19+
```hcl
20+
data "linode_lock" "my_lock" {
21+
id = 123456
22+
}
23+
```
24+
25+
## Argument Reference
26+
27+
The following arguments are supported:
28+
29+
* `id` - (Required) The unique ID of the Lock.
30+
31+
## Attributes Reference
32+
33+
In addition to all arguments above, the following attributes are exported:
34+
35+
* `entity_id` - The ID of the locked entity.
36+
37+
* `entity_type` - The type of the locked entity.
38+
39+
* `lock_type` - The type of lock.
40+
41+
* `entity_label` - The label of the locked entity.
42+
43+
* `entity_url` - The URL of the locked entity.

docs/data-sources/locks.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
page_title: "Linode: linode_locks"
3+
description: |-
4+
Provides information about Linode Locks that match a set of filters.
5+
---
6+
7+
# Data Source: linode\_locks
8+
9+
~> **Early Access:** Lock functionality is in early access and may not be available to all users.
10+
11+
~> **Important** Only unrestricted users can view locks. Restricted users cannot access lock information even if they have permissions for the resources.
12+
13+
Provides information about Linode Locks that match a set of filters. Locks prevent accidental deletion, rebuild operations, and service transfers of resources.
14+
15+
For more information, see the Linode APIv4 docs (TBD).
16+
17+
## Example Usage
18+
19+
Get all locks in a type:
20+
21+
```hcl
22+
data "linode_locks" "my_instance_locks" {
23+
filter {
24+
name = "lock_type"
25+
values = ["cannot_delete"]
26+
}
27+
}
28+
```
29+
30+
Get information about all locks:
31+
32+
```hcl
33+
data "linode_locks" "all" {}
34+
35+
output "all_lock_ids" {
36+
value = data.linode_locks.all.locks.*.id
37+
}
38+
```
39+
40+
## Argument Reference
41+
42+
The following arguments are supported:
43+
44+
* [`filter`](#filter) - (Optional) A set of filters used to select Linode Locks that meet certain requirements.
45+
46+
* `order_by` - (Optional) The attribute to order the results by. See the [Filterable Fields section](#filterable-fields) for a list of valid fields.
47+
48+
* `order` - (Optional) The order in which results should be returned. (`asc`, `desc`; default `asc`)
49+
50+
### Filter
51+
52+
* `name` - (Required) The name of the field to filter by. See the [Filterable Fields section](#filterable-fields) for a complete list of filterable fields.
53+
54+
* `values` - (Required) A list of values for the filter to allow. These values should all be in string form.
55+
56+
* `match_by` - (Optional) The method to match the field by. (`exact`, `regex`, `substring`; default `exact`)
57+
58+
## Attributes Reference
59+
60+
In addition to all arguments above, the following attributes are exported:
61+
62+
* `locks` - A list of Linode Locks that match the filter criteria.
63+
64+
### Lock Attributes
65+
66+
Each lock in the `locks` list exports the following attributes:
67+
68+
* `id` - The unique ID of the Lock.
69+
70+
* `entity_id` - The ID of the locked entity.
71+
72+
* `entity_type` - The type of the locked entity.
73+
74+
* `lock_type` - The type of lock.
75+
76+
* `entity_label` - The label of the locked entity.
77+
78+
* `entity_url` - The URL of the locked entity.
79+
80+
## Filterable Fields
81+
82+
* `id`
83+
84+
* `lock_type`

0 commit comments

Comments
 (0)