Skip to content

Commit a7bb00a

Browse files
committed
feat(k8scluster): support datafabric
Signed-off-by: Chris Snow <[email protected]>
1 parent 09be4c1 commit a7bb00a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

hpecp/cli/k8scluster.py

+4
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def create(
8484
addons=[],
8585
external_identity_server={},
8686
external_groups=[],
87+
datafabric=False,
88+
datafabric_name=None,
8789
):
8890
"""Create a K8s Cluster.
8991
@@ -134,6 +136,8 @@ def create(
134136
addons=addons,
135137
external_identity_server=external_identity_server,
136138
external_groups=external_groups,
139+
datafabric=datafabric,
140+
datafabric_name=datafabric_name,
137141
)
138142
)
139143

hpecp/k8s_cluster.py

+7
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ def create(
294294
addons=[],
295295
external_identity_server={},
296296
external_groups=[],
297+
datafabric=False,
298+
datafabric_name=None,
297299
):
298300
"""Send an API request to create a K8s Cluster. The cluster creation
299301
will be asynchronous - use the :py:meth:`wait_for_status` method to
@@ -344,6 +346,8 @@ def create(
344346
"verify_peer":false,
345347
"type":"Active Directory",
346348
"port":636}
349+
datafabric: bool
350+
datafabric_name: str optional
347351
348352
Returns
349353
-------
@@ -412,6 +416,9 @@ def create(
412416
data["external_identity_server"] = external_identity_server
413417
if external_groups:
414418
data["external_groups"] = external_groups
419+
if datafabric:
420+
data["datafabric"] = True
421+
data["datafabric_name"] = datafabric_name
415422

416423
response = self.client._request(
417424
url="/api/v2/k8scluster",

0 commit comments

Comments
 (0)