Skip to content

Commit 887fe85

Browse files
Merge pull request #661 from linode/dev
Release v0.37.0
2 parents 2e0270c + 332de27 commit 887fe85

File tree

21 files changed

+628
-31
lines changed

21 files changed

+628
-31
lines changed

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222
-
2323
name: Run Labeler
24-
uses: crazy-max/ghaction-github-labeler@31674a3852a9074f2086abcf1c53839d466a47e7
24+
uses: crazy-max/ghaction-github-labeler@24d110aa46a59976b8a7f35518cb7f14f434c916
2525
with:
2626
github-token: ${{ secrets.GITHUB_TOKEN }}
2727
yaml-file: .github/labels.yml

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ name: Run Unit test
77

88
jobs:
99
run-tests:
10-
11-
# TODO:
12-
# Upgrade back to ubuntu-latest when the permission issue fixed
13-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1411
strategy:
1512
matrix:
1613
python-version: [ '3.9','3.10','3.11', '3.12' ]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Name | Description |
7272
[linode.cloud.ip_info](./docs/modules/ip_info.md)|Get info about a Linode IP.|
7373
[linode.cloud.ipv6_range_info](./docs/modules/ipv6_range_info.md)|Get info about a Linode IPv6 range.|
7474
[linode.cloud.lke_cluster_info](./docs/modules/lke_cluster_info.md)|Get info about a Linode LKE cluster.|
75+
[linode.cloud.lke_version_info](./docs/modules/lke_version_info.md)|Get info about a Linode LKE Version.|
7576
[linode.cloud.nodebalancer_info](./docs/modules/nodebalancer_info.md)|Get info about a Linode Node Balancer.|
7677
[linode.cloud.object_cluster_info](./docs/modules/object_cluster_info.md)|**NOTE: This module has been deprecated because it relies on deprecated API endpoints. Going forward, `region` will be the preferred way to designate where Object Storage resources should be created.**|
7778
[linode.cloud.placement_group_info](./docs/modules/placement_group_info.md)|Get info about a Linode Placement Group.|

docs/modules/lke_cluster.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,13 @@ Manage Linode LKE clusters.
6161
| `k8s_version` | <center>`str`</center> | <center>Optional</center> | The desired Kubernetes version for this Kubernetes cluster in the format of <major>.<minor>, and the latest supported patch version will be deployed. A version upgrade requires that you manually recycle the nodes in your cluster. **(Updatable)** |
6262
| `region` | <center>`str`</center> | <center>Optional</center> | This Kubernetes cluster’s location. |
6363
| `tags` | <center>`list`</center> | <center>Optional</center> | An array of tags applied to the Kubernetes cluster. |
64-
| `high_availability` | <center>`bool`</center> | <center>Optional</center> | Defines whether High Availability is enabled for the Control Plane Components of the cluster. **(Default: `False`; Updatable)** |
64+
| `high_availability` | <center>`bool`</center> | <center>Optional</center> | Defines whether High Availability is enabled for the Control Plane Components of the cluster. **(Updatable)** |
6565
| [`acl` (sub-options)](#acl) | <center>`dict`</center> | <center>Optional</center> | The ACL configuration for this cluster's control plane. **(Updatable)** |
6666
| [`node_pools` (sub-options)](#node_pools) | <center>`list`</center> | <center>Optional</center> | A list of node pools to configure the cluster with **(Updatable)** |
6767
| `skip_polling` | <center>`bool`</center> | <center>Optional</center> | If true, the module will not wait for all nodes in the cluster to be ready. **(Default: `False`)** |
6868
| `wait_timeout` | <center>`int`</center> | <center>Optional</center> | The period to wait for the cluster to be ready in seconds. **(Default: `600`)** |
6969
| `apl_enabled` | <center>`bool`</center> | <center>Optional</center> | Whether this cluster should use APL. NOTE: This endpoint is in beta. **(Default: `False`)** |
70+
| `tier` | <center>`str`</center> | <center>Optional</center> | The desired tier of the LKE Cluster. NOTE: LKE Enterprise may not currently be available to all users and can only be used with v4beta. **(Choices: `standard`, `enterprise`)** |
7071

7172
### acl
7273

docs/modules/lke_node_pool.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ Manage Linode LKE cluster node pools.
6363
| `wait_timeout` | <center>`int`</center> | <center>Optional</center> | The period to wait for the node pool to be ready in seconds. **(Default: `600`)** |
6464
| `labels` | <center>`dict`</center> | <center>Optional</center> | Key-value pairs added as labels to nodes in the node pool. Labels help classify your nodes and to easily select subsets of objects. **(Updatable)** |
6565
| [`taints` (sub-options)](#taints) | <center>`list`</center> | <center>Optional</center> | Kubernetes taints to add to node pool nodes. Taints help control how pods are scheduled onto nodes, specifically allowing them to repel certain pods. **(Updatable)** |
66+
| `k8s_version` | <center>`str`</center> | <center>Optional</center> | The desired Kubernetes version for this Kubernetes Node Pool in the format of <major>.<minor>, and the latest supported patch version. NOTE: Only available for LKE Enterprise to support node pool upgrades. This field may not currently be available to all users and is under v4beta. **(Updatable)** |
67+
| `update_strategy` | <center>`str`</center> | <center>Optional</center> | Upgrade strategy describes the available upgrade strategies. NOTE: Only available for LKE Enterprise to support node pool upgrades. This field may not currently be available to all users and is under v4beta. **(Choices: `rolling_update`, `on_recycle`; Updatable)** |
6668

6769
### autoscaler
6870

docs/modules/lke_version_info.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# lke_version_info
2+
3+
Get info about a Linode LKE Version.
4+
5+
- [Minimum Required Fields](#minimum-required-fields)
6+
- [Examples](#examples)
7+
- [Parameters](#parameters)
8+
- [Return Values](#return-values)
9+
10+
## Minimum Required Fields
11+
| Field | Type | Required | Description |
12+
|-------------|-------|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
13+
| `api_token` | `str` | **Required** | The Linode account personal access token. It is necessary to run the module. <br/>It can be exposed by the environment variable `LINODE_API_TOKEN` instead. <br/>See details in [Usage](https://github.com/linode/ansible_linode?tab=readme-ov-file#usage). |
14+
15+
## Examples
16+
17+
```yaml
18+
- name: Get info about an LKE version by ID
19+
linode.cloud.lke_cluster_info:
20+
id: '1.31'
21+
22+
```
23+
24+
```yaml
25+
- name: Get info about an LKE version by tier and ID
26+
linode.cloud.lke_cluster_info:
27+
tier: 'standard'
28+
id: '1.31'
29+
30+
```
31+
32+
33+
## Parameters
34+
35+
| Field | Type | Required | Description |
36+
|-----------|------|----------|------------------------------------------------------------------------------|
37+
| `id` | <center>`str`</center> | <center>**Required**</center> | The ID of the LKE Version to resolve. |
38+
| `tier` | <center>`str`</center> | <center>Optional</center> | Specifies the service tier for retrieving LKE version details. NOTE: LKE Enterprise may not currently be available to all users and can only be used with v4beta. **(Choices: `standard`, `enterprise`)** |
39+
40+
## Return Values
41+
42+
- `lke_version` - The returned LKE Version.
43+
44+
- Sample Response:
45+
```json
46+
47+
{
48+
"id": "1.31"
49+
}
50+
51+
```
52+
```json
53+
54+
{
55+
"id": "1.31",
56+
"tier": "standard"
57+
}
58+
59+
```
60+
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/get-lke-version) for a list of returned fields
61+
62+

docs/modules/lke_version_list.md

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,16 @@ List and filter on LKE Versions.
1515
## Examples
1616

1717
```yaml
18-
- name: List all Kubernetes versions available for deployment to a Kubernetes cluster
19-
linode.cloud.lke_version_list: {}
18+
- name: List all Kubernetes versions available for deployment to a Kubernetes cluster
19+
linode.cloud.lke_version_list:
20+
21+
```
22+
23+
```yaml
24+
- name: List all enterprise-tier Kubernetes versions available for deployment to a Kubernetes cluster
25+
linode.cloud.lke_version_list:
26+
tier: "enterprise"
27+
2028
```
2129

2230

@@ -28,6 +36,7 @@ List and filter on LKE Versions.
2836
| `order_by` | <center>`str`</center> | <center>Optional</center> | The attribute to order LKE Versions by. |
2937
| [`filters` (sub-options)](#filters) | <center>`list`</center> | <center>Optional</center> | A list of filters to apply to the resulting LKE Versions. |
3038
| `count` | <center>`int`</center> | <center>Optional</center> | The number of LKE Versions to return. If undefined, all results will be returned. |
39+
| `tier` | <center>`str`</center> | <center>Optional</center> | Specifies the service tier for retrieving LKE version details. NOTE: LKE Enterprise may not currently be available to all users and can only be used with v4beta. **(Choices: `standard`, `enterprise`)** |
3140

3241
### filters
3342

@@ -42,11 +51,29 @@ List and filter on LKE Versions.
4251

4352
- Sample Response:
4453
```json
45-
[
46-
{
47-
"id": "1.25"
48-
}
49-
]
54+
55+
[
56+
{
57+
"id": "1.32"
58+
},
59+
{
60+
"id": "1.31"
61+
},
62+
{
63+
"id": "1.30"
64+
}
65+
]
66+
67+
```
68+
```json
69+
70+
[
71+
{
72+
"id": "v1.31.1+lke1",
73+
"tier": "enterprise"
74+
}
75+
]
76+
5077
```
5178
- See the [Linode API response documentation](https://techdocs.akamai.com/linode-api/reference/get-lke-versions) for a list of returned fields
5279

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
"""Documentation fragments for the lke_version_info module"""
2+
3+
specdoc_examples = [
4+
'''
5+
- name: Get info about an LKE version by ID
6+
linode.cloud.lke_cluster_info:
7+
id: '1.31'
8+
''', '''
9+
- name: Get info about an LKE version by tier and ID
10+
linode.cloud.lke_cluster_info:
11+
tier: 'standard'
12+
id: '1.31'
13+
'''
14+
]
15+
16+
result_lke_version_samples = [
17+
'''
18+
{
19+
"id": "1.31"
20+
}
21+
''',
22+
'''
23+
{
24+
"id": "1.31",
25+
"tier": "standard"
26+
}
27+
'''
28+
]
Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,36 @@
11
"""Documentation fragments for the lke_version_list module"""
22

3-
specdoc_examples = ['''
4-
- name: List all Kubernetes versions available for deployment to a Kubernetes cluster
5-
linode.cloud.lke_version_list: {}''']
3+
specdoc_examples = [
4+
'''
5+
- name: List all Kubernetes versions available for deployment to a Kubernetes cluster
6+
linode.cloud.lke_version_list:
7+
''', '''
8+
- name: List all enterprise-tier Kubernetes versions available for deployment to a Kubernetes cluster
9+
linode.cloud.lke_version_list:
10+
tier: "enterprise"
11+
'''
12+
]
613

7-
result_lke_versions_samples = ['''[
8-
{
9-
"id": "1.25"
10-
}
11-
]''']
14+
result_lke_versions_samples = [
15+
'''
16+
[
17+
{
18+
"id": "1.32"
19+
},
20+
{
21+
"id": "1.31"
22+
},
23+
{
24+
"id": "1.30"
25+
}
26+
]
27+
''',
28+
'''
29+
[
30+
{
31+
"id": "v1.31.1+lke1",
32+
"tier": "enterprise"
33+
}
34+
]
35+
'''
36+
]

0 commit comments

Comments
 (0)