Skip to content

Commit d231987

Browse files
fix: Make the autoscaler, control_plane, and k8s_version fields mutable (#310)
## 📝 Description This change makes the `autoscaler`, `control_plane`, and `k8s_version` fields mutable to reflect their status in the API. ## ✔️ How to Test ``` make testunit ```
1 parent 3e7c98f commit d231987

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

linode_api4/objects/lke.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class LKENodePool(DerivedBase):
7373
"nodes": Property(
7474
volatile=True
7575
), # this is formatted in _populate below
76-
"autoscaler": Property(),
76+
"autoscaler": Property(mutable=True),
7777
"tags": Property(mutable=True),
7878
}
7979

@@ -119,9 +119,9 @@ class LKECluster(Base):
119119
"tags": Property(mutable=True),
120120
"updated": Property(is_datetime=True),
121121
"region": Property(slug_relationship=Region),
122-
"k8s_version": Property(slug_relationship=KubeVersion),
122+
"k8s_version": Property(slug_relationship=KubeVersion, mutable=True),
123123
"pools": Property(derived_class=LKENodePool),
124-
"control_plane": Property(),
124+
"control_plane": Property(mutable=True),
125125
}
126126

127127
@property

0 commit comments

Comments
 (0)