@@ -292,6 +292,7 @@ def create(
292
292
persistent_storage_nimble_csi = False ,
293
293
k8shosts_config = [],
294
294
addons = [],
295
+ external_identity_server = {},
295
296
):
296
297
"""Send an API request to create a K8s Cluster. The cluster creation
297
298
will be asynchronous - use the :py:meth:`wait_for_status` method to
@@ -329,6 +330,19 @@ def create(
329
330
k8shosts_config: list[K8sClusterHostConfig]
330
331
list of :py:class:`K8sClusterHostConfig` objects determining
331
332
which hosts to add and their role (master or worker)
333
+ external_identity_server: dict
334
+ Example {
335
+ "bind_pwd":"password",
336
+ "user_attribute":"CN",
337
+ "bind_type":"search_bind",
338
+ "bind_dn":"cn=Administrator,CN=Users,DC=samdom,DC=example,DC=com",
339
+ "host":"10.1.0.15",
340
+ "group_attribute":"member",
341
+ "security_protocol":"ldaps",
342
+ "base_dn":"CN=Users,DC=samdom,DC=example,DC=com",
343
+ "verify_peer":false,
344
+ "type":"Active Directory",
345
+ "port":636}
332
346
333
347
Returns
334
348
-------
@@ -393,6 +407,8 @@ def create(
393
407
data ["label" ]["description" ] = description
394
408
if k8s_version is not None :
395
409
data ["k8s_version" ] = k8s_version
410
+ if external_identity_server is not None :
411
+ data ["external_identity_server" ] = external_identity_server
396
412
397
413
response = self .client ._request (
398
414
url = "/api/v2/k8scluster" ,
0 commit comments