Skip to content

Commit 4d53970

Browse files
committed
Merge branch 'release/v1.2.0'
2 parents ba057be + 91ad796 commit 4d53970

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
v1.2.0 (2023-04-24)
5+
-------------------
6+
7+
* Added support for deploying a new instance with existing volumes
8+
49
v1.1.2 (2023-03-02)
510
-------------------
611

datacrunch/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '1.1.2'
1+
VERSION = '1.2.0'

datacrunch/instances/instances.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ def create(self,
349349
location: str = "FIN1",
350350
startup_script_id: str = None,
351351
volumes: List[Dict] = None,
352+
existing_volumes: List[str] = None,
352353
os_volume: Dict = None,
353354
is_spot: bool = False,
354355
coupon: str = None) -> Instance:
@@ -370,6 +371,8 @@ def create(self,
370371
:type startup_script_id: str, optional
371372
:param volumes: List of volume data dictionaries to create alongside the instance
372373
:type volumes: List[Dict], optional
374+
:param existing_volumes: List of existing volume ids to attach to the instance
375+
:type existing_volumes: List[str], optional
373376
:param os_volume: OS volume details, defaults to None
374377
:type os_volume: Dict, optional
375378
:param is_spot: Is spot instance
@@ -389,6 +392,7 @@ def create(self,
389392
"location": location,
390393
"os_volume": os_volume,
391394
"volumes": volumes,
395+
"existing_volumes": existing_volumes,
392396
"is_spot": is_spot,
393397
"coupon": coupon
394398
}

0 commit comments

Comments
 (0)