Skip to content

Commit 9a746ff

Browse files
Merge branch 'dev' into proj/enhanced-interfaces
2 parents ee5d84f + 656409f commit 9a746ff

File tree

18 files changed

+71
-45
lines changed

18 files changed

+71
-45
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/checkout@v5
1818

1919
- name: setup python 3
20-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@v6
2121
with:
2222
python-version: '3.x'
2323

@@ -34,7 +34,7 @@ jobs:
3434
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
3535
steps:
3636
- uses: actions/checkout@v5
37-
- uses: actions/setup-python@v5
37+
- uses: actions/setup-python@v6
3838
with:
3939
python-version: ${{ matrix.python-version }}
4040
- name: Run tests

.github/workflows/e2e-test-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8181

8282
- name: Setup Python
83-
uses: actions/setup-python@v5
83+
uses: actions/setup-python@v6
8484
with:
8585
python-version: '3.x'
8686

@@ -176,7 +176,7 @@ jobs:
176176

177177
steps:
178178
- name: Set up Python
179-
uses: actions/setup-python@v5
179+
uses: actions/setup-python@v6
180180
with:
181181
python-version: '3.x'
182182

.github/workflows/e2e-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
submodules: 'recursive'
7272

7373
- name: Setup Python
74-
uses: actions/setup-python@v5
74+
uses: actions/setup-python@v6
7575
with:
7676
python-version: ${{ inputs.run-eol-python-version == 'true' && env.EOL_PYTHON_VERSION || inputs.python-version || env.DEFAULT_PYTHON_VERSION }}
7777

@@ -141,7 +141,7 @@ jobs:
141141

142142
steps:
143143
- name: Set up Python
144-
uses: actions/setup-python@v5
144+
uses: actions/setup-python@v6
145145
with:
146146
python-version: '3.x'
147147

@@ -189,7 +189,7 @@ jobs:
189189
name: test-report-file
190190

191191
- name: Set up Python
192-
uses: actions/setup-python@v5
192+
uses: actions/setup-python@v6
193193
with:
194194
python-version: '3.x'
195195

.github/workflows/nightly-smoke-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
ref: dev
2525

2626
- name: Set up Python
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@v6
2828
with:
2929
python-version: '3.x'
3030

.github/workflows/publish-pypi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v5
1616

1717
- name: Setup Python
18-
uses: actions/setup-python@v5
18+
uses: actions/setup-python@v6
1919
with:
2020
python-version: '3.x'
2121

.github/workflows/release-cross-repo-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: sudo apt-get install -y build-essential
2626

2727
- name: Set up Python
28-
uses: actions/setup-python@v5
28+
uses: actions/setup-python@v6
2929
with:
3030
python-version: '3.10'
3131

linode_api4/groups/maintenance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def maintenance_policies(self):
1414
Returns a collection of MaintenancePolicy objects representing
1515
available maintenance policies that can be applied to Linodes
1616
17-
API Documentation: https://techdocs.akamai.com/linode-api/reference/get-policies
17+
API Documentation: https://techdocs.akamai.com/linode-api/reference/get-maintenance-policies
1818
1919
:returns: A list of Maintenance Policies that can be applied to Linodes
2020
:rtype: List of MaintenancePolicy objects as MappedObjects

linode_api4/objects/lke.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ class LKENodePool(DerivedBase):
187187
properties = {
188188
"id": Property(identifier=True),
189189
"cluster_id": Property(identifier=True),
190+
"label": Property(mutable=True),
190191
"type": Property(slug_relationship=Type),
191192
"disks": Property(),
192193
"disk_encryption": Property(),
@@ -419,6 +420,7 @@ def node_pool_create(
419420
Union[str, KubeVersion, TieredKubeVersion]
420421
] = None,
421422
update_strategy: Optional[str] = None,
423+
label: str = None,
422424
**kwargs,
423425
):
424426
"""
@@ -444,23 +446,19 @@ def node_pool_create(
444446
for possible values.
445447
446448
:returns: The new Node Pool
449+
:param label: The name of the node pool.
450+
:type label: str
447451
:rtype: LKENodePool
448452
"""
449453
params = {
450454
"type": node_type,
455+
"label": label,
451456
"count": node_count,
452457
"labels": labels,
453458
"taints": taints,
454459
"k8s_version": k8s_version,
455460
"update_strategy": update_strategy,
456461
}
457-
458-
if labels is not None:
459-
params["labels"] = labels
460-
461-
if taints is not None:
462-
params["taints"] = taints
463-
464462
params.update(kwargs)
465463

466464
result = self._client.post(

test/fixtures/lke_clusters_18881_pools_456.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"foo": "bar",
3535
"bar": "foo"
3636
},
37+
"label": "example-node-pool",
3738
"type": "g6-standard-4",
3839
"disk_encryption": "enabled"
3940
}

test/fixtures/lke_clusters_18882_pools_789.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"id": 789,
33
"type": "g6-standard-2",
4+
"label": "enterprise-node-pool",
45
"count": 3,
56
"nodes": [],
67
"disks": [],

0 commit comments

Comments
 (0)