File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
test/integration/models/lke Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -422,6 +422,7 @@ def node_pool_create(
422422 ] = None ,
423423 update_strategy : Optional [str ] = None ,
424424 label : str = None ,
425+ disk_encryption : Optional [str ] = None ,
425426 ** kwargs ,
426427 ):
427428 """
@@ -443,6 +444,9 @@ def node_pool_create(
443444 :param update_strategy: The strategy to use when updating this node pool.
444445 NOTE: This field is specific to enterprise clusters.
445446 :type update_strategy: str
447+ :param disk_encryption: Local disk encryption setting for this LKE node pool.
448+ One of 'enabled', or 'disabled'. Defaults to 'disabled'.
449+ :type disk_encryption: str
446450 :param kwargs: Any other arguments to pass to the API. See the API docs
447451 for possible values.
448452
@@ -459,6 +463,7 @@ def node_pool_create(
459463 "taints" : taints ,
460464 "k8s_version" : k8s_version ,
461465 "update_strategy" : update_strategy ,
466+ "disk_encryption" : disk_encryption ,
462467 }
463468 params .update (kwargs )
464469
Original file line number Diff line number Diff line change @@ -210,6 +210,19 @@ def _to_comparable(p: LKENodePool) -> Dict[str, Any]:
210210 InstanceDiskEncryptionType .disabled ,
211211 )
212212
213+ def test_node_pool_create_with_disk_encryption (test_linode_client , lke_cluster ):
214+ node_type = test_linode_client .linode .types ()[1 ]
215+
216+ pool = lke_cluster .node_pool_create (
217+ node_type ,
218+ 1 ,
219+ disk_encryption = "enabled" ,
220+ )
221+
222+ assert pool .disk_encryption == InstanceDiskEncryptionType .enabled
223+
224+ pool .delete ()
225+
213226
214227def test_cluster_dashboard_url_view (lke_cluster ):
215228 cluster = lke_cluster
You can’t perform that action at this time.
0 commit comments