Skip to content

Commit 10bbf0d

Browse files
committed
add firewall_id
1 parent a6f0b01 commit 10bbf0d

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

linode_api4/objects/lke.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ class LKENodePool(DerivedBase):
205205
# directly exposed in the node pool response.
206206
"k8s_version": Property(mutable=True),
207207
"update_strategy": Property(mutable=True),
208+
"firewall_id": Property(mutable=True),
208209
}
209210

210211
def _parse_raw_node(

test/fixtures/lke_clusters_18881_pools_456.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"bar": "foo"
3636
},
3737
"label": "example-node-pool",
38+
"firewall_id": 456,
3839
"type": "g6-standard-4",
3940
"disk_encryption": "enabled"
4041
}

test/fixtures/lke_clusters_18882_pools_789.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
"tags": [],
1616
"disk_encryption": "enabled",
1717
"k8s_version": "1.31.1+lke1",
18+
"firewall_id": 789,
1819
"update_strategy": "rolling_update"
1920
}

test/unit/objects/lke_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def test_get_pool(self):
5252
assert pool.cluster_id == 18881
5353
assert pool.type.id == "g6-standard-4"
5454
assert pool.label == "example-node-pool"
55+
assert pool.firewall_id == 456
5556
assert pool.disk_encryption == InstanceDiskEncryptionType.enabled
5657

5758
assert pool.disks is not None
@@ -254,6 +255,7 @@ def test_lke_node_pool_update(self):
254255
pool.tags = ["foobar"]
255256
pool.count = 5
256257
pool.label = "testing-label"
258+
pool.firewall_id = 852
257259
pool.autoscaler = {
258260
"enabled": True,
259261
"min": 2,
@@ -281,6 +283,7 @@ def test_lke_node_pool_update(self):
281283
"labels": {
282284
"updated-key": "updated-value",
283285
},
286+
"firewall_id": 852,
284287
"taints": [
285288
{
286289
"key": "updated-key",
@@ -551,6 +554,7 @@ def test_cluster_enterprise(self):
551554
assert pool.k8s_version == "1.31.1+lke1"
552555
assert pool.update_strategy == "rolling_update"
553556
assert pool.label == "enterprise-node-pool"
557+
assert pool.firewall_id == 789
554558

555559
def test_lke_tiered_version(self):
556560
version = TieredKubeVersion(self.client, "1.32", "standard")

0 commit comments

Comments
 (0)