snapctl 0.47.0__py3-none-any.whl → 0.47.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of snapctl might be problematic. Click here for more details.
- snapctl/commands/byosnap.py +29 -1
- snapctl/config/constants.py +1 -1
- snapctl/data/releases/beta-0.47.1.mdx +11 -0
- {snapctl-0.47.0.dist-info → snapctl-0.47.1.dist-info}/METADATA +1 -1
- {snapctl-0.47.0.dist-info → snapctl-0.47.1.dist-info}/RECORD +8 -7
- {snapctl-0.47.0.dist-info → snapctl-0.47.1.dist-info}/LICENSE +0 -0
- {snapctl-0.47.0.dist-info → snapctl-0.47.1.dist-info}/WHEEL +0 -0
- {snapctl-0.47.0.dist-info → snapctl-0.47.1.dist-info}/entry_points.txt +0 -0
snapctl/commands/byosnap.py
CHANGED
|
@@ -961,6 +961,8 @@ class ByoSnap:
|
|
|
961
961
|
# Setup
|
|
962
962
|
self._setup_token_and_token_parts(
|
|
963
963
|
self.base_url, self.api_key, self.byosnap_id)
|
|
964
|
+
# Setup the profile data
|
|
965
|
+
self._setup_and_validate_byosnap_profile_data()
|
|
964
966
|
# Validator
|
|
965
967
|
ByoSnap._validate_byosnap_id(self.byosnap_id)
|
|
966
968
|
if self.token_parts is None:
|
|
@@ -988,6 +990,8 @@ class ByoSnap:
|
|
|
988
990
|
# Setup
|
|
989
991
|
self._setup_token_and_token_parts(
|
|
990
992
|
self.base_url, self.api_key, self.byosnap_id)
|
|
993
|
+
# Setup the profile data
|
|
994
|
+
self._setup_and_validate_byosnap_profile_data()
|
|
991
995
|
# Validator
|
|
992
996
|
ByoSnap._validate_byosnap_id(self.byosnap_id)
|
|
993
997
|
if self.token_parts is None:
|
|
@@ -1405,8 +1409,32 @@ class ByoSnap:
|
|
|
1405
1409
|
progress.add_task(
|
|
1406
1410
|
description='Updating your Byosnap...', total=None)
|
|
1407
1411
|
try:
|
|
1412
|
+
profile_data = self._get_profile_contents()
|
|
1413
|
+
dev_template = None
|
|
1414
|
+
if 'dev_template' in profile_data:
|
|
1415
|
+
dev_template = profile_data['dev_template']
|
|
1416
|
+
stage_template = None
|
|
1417
|
+
if 'stage_template' in profile_data:
|
|
1418
|
+
stage_template = profile_data['stage_template']
|
|
1419
|
+
prod_template = None
|
|
1420
|
+
if 'prod_template' in profile_data:
|
|
1421
|
+
prod_template = profile_data['prod_template']
|
|
1408
1422
|
payload = {
|
|
1409
|
-
|
|
1423
|
+
"image_tag": self.tag,
|
|
1424
|
+
"base_url": f"{self.prefix}/{self.byosnap_id}",
|
|
1425
|
+
"ingress": {
|
|
1426
|
+
"external_port": self.ingress_external_port,
|
|
1427
|
+
"internal_ports": self.ingress_internal_ports
|
|
1428
|
+
},
|
|
1429
|
+
"readiness_probe_config": {
|
|
1430
|
+
"path": self.readiness_path,
|
|
1431
|
+
"initial_delay_seconds": self.readiness_delay
|
|
1432
|
+
},
|
|
1433
|
+
"dev_template": dev_template,
|
|
1434
|
+
"stage_template": stage_template,
|
|
1435
|
+
"prod_template": prod_template,
|
|
1436
|
+
# Currently not supported so we are just hardcoding an empty list
|
|
1437
|
+
"egress": {"ports": []},
|
|
1410
1438
|
}
|
|
1411
1439
|
res = requests.patch(
|
|
1412
1440
|
f"{self.base_url}/v1/snapser-api/byosnaps/{self.byosnap_id}/versions/{self.version}",
|
snapctl/config/constants.py
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## beta-0.47.1
|
|
2
|
+
##### March 12, 2025
|
|
3
|
+
|
|
4
|
+
### [Breaking Change] Feature
|
|
5
|
+
1. The sync command now also syncs the BYOSnap profile with the Snapend as well
|
|
6
|
+
```bash
|
|
7
|
+
snapctl byosnap sync --byosnap-id byosnap-jinks-flask --path /Users/Ajinkya/Development/SnapserEngine/jinks_flask --version "$version" --snapend-id "${snapendId}" --blocking
|
|
8
|
+
```
|
|
9
|
+
The only reason this constitutes a breaking change is if users of the sync command were not
|
|
10
|
+
anticipating the BYOSnap profile to be checked. Now that this command also synchronizes the profile,
|
|
11
|
+
you must have the BYOSnap profile located at the --path or within the --resources-path folder.
|
|
@@ -2,13 +2,13 @@ snapctl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
snapctl/__main__.py,sha256=43jKoTk8b85hk_MT6499N3ruHdEfM8WBImd_-3VzjI8,116
|
|
3
3
|
snapctl/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
snapctl/commands/byogs.py,sha256=Cq0-dwMmDCe_oynAANRGlS9gVBzq2rRU4y04jKhz870,19321
|
|
5
|
-
snapctl/commands/byosnap.py,sha256=
|
|
5
|
+
snapctl/commands/byosnap.py,sha256=sAJFGCR-enJ9Elr_Kcvxq_I-kNIo6tYAC5BdYXN0-_4,74904
|
|
6
6
|
snapctl/commands/game.py,sha256=nCXtEXAJkvOw26c_OBGr7Pz4hwu-5FXHyBR2kkXhLCM,5247
|
|
7
7
|
snapctl/commands/generate.py,sha256=9-NlZVQllBT2LZT_t9S3ztwtHzTbM-C8_x0f6z70U3g,5606
|
|
8
8
|
snapctl/commands/release_notes.py,sha256=K1OdX94pL-pKL2Depbs-AkVcPpKn_CX2cOsZiRZP5kc,2134
|
|
9
9
|
snapctl/commands/snapend.py,sha256=ZQSI_QfxsmqCkz2kBkFSMN94ZkSgXlzwZBJXEs5nOoM,38483
|
|
10
10
|
snapctl/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
snapctl/config/constants.py,sha256=
|
|
11
|
+
snapctl/config/constants.py,sha256=S1-d76GV6b0LmHjklOzIP0TOf7IXpDPDgALZP34cfQw,3465
|
|
12
12
|
snapctl/config/endpoints.py,sha256=9kllA79xn9G_aBLp1rohURZi93pwYzTEWZ8ObtZ6crw,338
|
|
13
13
|
snapctl/config/hashes.py,sha256=2Dyb3lbNRNKzc80XUH8S4yNJtRVGRCMK7-GwzyT4WQ0,5149
|
|
14
14
|
snapctl/data/profiles/snapser-byosnap-profile.json,sha256=c7oIzMJewVQaoLaXCBPXlH-k5cL9DCz6q4IixsWWD9c,2404
|
|
@@ -16,14 +16,15 @@ snapctl/data/profiles/snapser-byosnap-profile.yaml,sha256=vK5JqHa1f1_jlcW0m7qg-s
|
|
|
16
16
|
snapctl/data/releases/beta-0.46.0.mdx,sha256=_MJA7TnnJjAnNm_EOvoBiz7FjHwl4c49sYtZ9r4KZQE,2386
|
|
17
17
|
snapctl/data/releases/beta-0.46.4.mdx,sha256=3-ojdCyvax27sdd8nKmcP0zfCWEzi_edPbSlkFqla4o,173
|
|
18
18
|
snapctl/data/releases/beta-0.47.0.mdx,sha256=p-bp0NUVcSKELHXtHJaq884_O4yTZDTCUbWtwLxRUS8,724
|
|
19
|
+
snapctl/data/releases/beta-0.47.1.mdx,sha256=YqQ7ncHDW9pCbQNnQic1o_xQt3DinOFEo3YW0hJVUAk,645
|
|
19
20
|
snapctl/main.py,sha256=aBPwQOlrRS-hVofifRRidraxoLHdlbCcKksdqbQ_rcA,22638
|
|
20
21
|
snapctl/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
22
|
snapctl/types/definitions.py,sha256=EQzLeiXkJ8ISRlCqHMviNVsWWpmhWjpKaOBLdlvOTmY,644
|
|
22
23
|
snapctl/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
24
|
snapctl/utils/echo.py,sha256=V0qgjqqGXRiueMkq31enmNmdqciC8S90qGRcK8UupXA,1090
|
|
24
25
|
snapctl/utils/helper.py,sha256=co6HhAE-Fo4TMxjSNZUfjK40vAwD3n8qU_JQcNjSlmU,6584
|
|
25
|
-
snapctl-0.47.
|
|
26
|
-
snapctl-0.47.
|
|
27
|
-
snapctl-0.47.
|
|
28
|
-
snapctl-0.47.
|
|
29
|
-
snapctl-0.47.
|
|
26
|
+
snapctl-0.47.1.dist-info/LICENSE,sha256=6AcXm54KFSpmUI1ji9NIBd4Xl-DtjTqiyjBzfVb_CEk,2804
|
|
27
|
+
snapctl-0.47.1.dist-info/METADATA,sha256=HxmocclfL49Jm3rjM-FpMbM-zOoOHNdcyipnhIBaqMA,34927
|
|
28
|
+
snapctl-0.47.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
29
|
+
snapctl-0.47.1.dist-info/entry_points.txt,sha256=tkKW9MzmFdRs6Bgkv29G78i9WEBK4WIOWunPfe3t2Wg,44
|
|
30
|
+
snapctl-0.47.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|