Skip to content

Commit bd41121

Browse files
author
Thibaud Baas
committed
FM: setup_k8s_and_spark SetupAction
1 parent 2f476ff commit bd41121

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

dataikuapi/fm/instancesettingstemplates.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ def install_jdbc_driver(database_type, url, paths_in_archive=None, http_headers=
103103
"""
104104
return FMSetupAction(FMSetupActionType.INSTALL_JDBC_DRIVER, {"url": url, "dbType": database_type.value, "pathsInArchive": paths_in_archive, "headers": http_headers, "username": http_username, "password": http_password, "subpathInDatadir": datadir_subdirectory})
105105

106+
@staticmethod
107+
def setup_k8s_and_spark():
108+
"""
109+
Return a SETUP_K8S_AND_SPARK FMSetupAction
110+
"""
111+
return FMSetupAction(FMSetupActionType.SETUP_K8S_AND_SPARK)
112+
106113
class FMSetupActionType(Enum):
107114
RUN_ANSIBLE_TASKS="RUN_ANSIBLE_TASKS"
108115
INSTALL_SYSTEM_PACKAGES="INSTALL_SYSTEM_PACKAGES"

0 commit comments

Comments
 (0)