Skip to content

Commit 83e2c81

Browse files
committed
Merge remote-tracking branch 'origin/release/10.0' into feature/dss100-sc-58209-public-api-for-api-keys
2 parents 48d6d12 + 1e4d6d8 commit 83e2c81

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dataikuapi/dssclient.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,20 +591,22 @@ def get_cluster(self, cluster_id):
591591
"""
592592
return DSSCluster(self, cluster_id)
593593

594-
def create_cluster(self, cluster_name, cluster_type='manual', params=None):
594+
def create_cluster(self, cluster_name, cluster_type='manual', params=None, cluster_architecture='HADOOP'):
595595
"""
596596
Create a cluster, and return a handle to interact with it
597597
598598
:param cluster_name: the name of the new cluster
599599
:param cluster_type: the type of the new cluster
600600
:param params: the parameters of the new cluster, as a JSON object
601-
601+
:param cluster_architecture: the architecture of the new cluster. 'HADOOP' or 'KUBERNETES'
602+
602603
:returns: A :class:`dataikuapi.dss.admin.DSSCluster` cluster handle
603604
604605
"""
605606
definition = {}
606607
definition['name'] = cluster_name
607608
definition['type'] = cluster_type
609+
definition['architecture'] = cluster_architecture
608610
definition['params'] = params if params is not None else {}
609611
resp = self._perform_json(
610612
"POST", "/admin/clusters/", body=definition)

0 commit comments

Comments
 (0)