snapctl 0.46.2__py3-none-any.whl → 0.46.4__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/byogs.py +2 -4
- snapctl/commands/byosnap.py +6 -0
- snapctl/config/constants.py +1 -1
- snapctl/data/releases/beta-0.46.4.mdx +7 -0
- {snapctl-0.46.2.dist-info → snapctl-0.46.4.dist-info}/METADATA +1 -1
- {snapctl-0.46.2.dist-info → snapctl-0.46.4.dist-info}/RECORD +9 -8
- {snapctl-0.46.2.dist-info → snapctl-0.46.4.dist-info}/LICENSE +0 -0
- {snapctl-0.46.2.dist-info → snapctl-0.46.4.dist-info}/WHEEL +0 -0
- {snapctl-0.46.2.dist-info → snapctl-0.46.4.dist-info}/entry_points.txt +0 -0
snapctl/commands/byogs.py
CHANGED
|
@@ -371,8 +371,7 @@ class ByoGs:
|
|
|
371
371
|
code=SNAPCTL_INPUT_ERROR)
|
|
372
372
|
# Check path
|
|
373
373
|
if self.resources_path:
|
|
374
|
-
docker_file_path = f"{
|
|
375
|
-
self.resources_path}/{self.docker_filename}"
|
|
374
|
+
docker_file_path = f"{self.resources_path}/{self.docker_filename}"
|
|
376
375
|
else:
|
|
377
376
|
docker_file_path = f"{self.path}/{self.docker_filename}"
|
|
378
377
|
|
|
@@ -388,8 +387,7 @@ class ByoGs:
|
|
|
388
387
|
code=SNAPCTL_INPUT_ERROR)
|
|
389
388
|
# Check path
|
|
390
389
|
if self.resources_path:
|
|
391
|
-
docker_file_path = f"{
|
|
392
|
-
self.resources_path}/{self.docker_filename}"
|
|
390
|
+
docker_file_path = f"{self.resources_path}/{self.docker_filename}"
|
|
393
391
|
else:
|
|
394
392
|
docker_file_path = f"{self.path}/{self.docker_filename}"
|
|
395
393
|
|
snapctl/commands/byosnap.py
CHANGED
|
@@ -65,6 +65,7 @@ class ByoSnap:
|
|
|
65
65
|
VALID_MEMORY_MARKS = [0.125, 0.25, 0.5, 1, 2, 3, 4]
|
|
66
66
|
MAX_READINESS_TIMEOUT = 30
|
|
67
67
|
MAX_MIN_REPLICAS = 4
|
|
68
|
+
INTERNAL_PORT_NAME_CHAR_LIMIT = 15
|
|
68
69
|
|
|
69
70
|
def __init__(
|
|
70
71
|
self, *, subcommand: str, base_url: str, api_key: Union[str, None], byosnap_id: str,
|
|
@@ -274,6 +275,11 @@ class ByoSnap:
|
|
|
274
275
|
f"Check the internal port number #{index}.",
|
|
275
276
|
code=SNAPCTL_INPUT_ERROR
|
|
276
277
|
)
|
|
278
|
+
if len(internal_port_obj['name']) > ByoSnap.INTERNAL_PORT_NAME_CHAR_LIMIT:
|
|
279
|
+
snapctl_error("Internal port name should be less than " +
|
|
280
|
+
f"{ByoSnap.INTERNAL_PORT_NAME_CHAR_LIMIT} characters. " +
|
|
281
|
+
f"Check internal port number {index}.",
|
|
282
|
+
SNAPCTL_INPUT_ERROR)
|
|
277
283
|
if internal_port_obj['name'] is None or internal_port_obj['name'].strip() == '':
|
|
278
284
|
snapctl_error(
|
|
279
285
|
message='Invalid Ingress internal_port value in BYOSnap profile. ' +
|
snapctl/config/constants.py
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
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
|
-
snapctl/commands/byogs.py,sha256=
|
|
5
|
-
snapctl/commands/byosnap.py,sha256=
|
|
4
|
+
snapctl/commands/byogs.py,sha256=DKVzMJid_SQ9Lv-ruQAxvl6qHbAS2m12qnh7wLSkDSQ,18983
|
|
5
|
+
snapctl/commands/byosnap.py,sha256=oJ8IwH6jHfS5MYwUtx3vnH5k4CzhIp5EBTSlgxcw_s4,73205
|
|
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=pUpdJ5H-NSg-wB-NnMUXNvRL10ac8289-ZxPhCYMXEc,35570
|
|
10
10
|
snapctl/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
snapctl/config/constants.py,sha256=
|
|
11
|
+
snapctl/config/constants.py,sha256=b26MNsKaJb2KhNmVxawdvy1GpezyvtM8KILh7j_gejg,3464
|
|
12
12
|
snapctl/config/endpoints.py,sha256=9kllA79xn9G_aBLp1rohURZi93pwYzTEWZ8ObtZ6crw,338
|
|
13
13
|
snapctl/config/hashes.py,sha256=MOn1R5zUQrVbgXT_SmGcRB_3LsQjxRpEiJtLoiIFBI8,4388
|
|
14
14
|
snapctl/data/profiles/snapser-byosnap-profile.json,sha256=c7oIzMJewVQaoLaXCBPXlH-k5cL9DCz6q4IixsWWD9c,2404
|
|
15
15
|
snapctl/data/profiles/snapser-byosnap-profile.yaml,sha256=vK5JqHa1f1_jlcW0m7qg-sKN9njE8PURJHzaRdvfEOY,3600
|
|
16
16
|
snapctl/data/releases/beta-0.46.0.mdx,sha256=_MJA7TnnJjAnNm_EOvoBiz7FjHwl4c49sYtZ9r4KZQE,2386
|
|
17
|
+
snapctl/data/releases/beta-0.46.4.mdx,sha256=3-ojdCyvax27sdd8nKmcP0zfCWEzi_edPbSlkFqla4o,173
|
|
17
18
|
snapctl/main.py,sha256=3-0dyEk5pK9t9P4fahlrh5R2gBUlQEFM4CUhhC3SOl4,22237
|
|
18
19
|
snapctl/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
20
|
snapctl/types/definitions.py,sha256=EQzLeiXkJ8ISRlCqHMviNVsWWpmhWjpKaOBLdlvOTmY,644
|
|
20
21
|
snapctl/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
22
|
snapctl/utils/echo.py,sha256=V0qgjqqGXRiueMkq31enmNmdqciC8S90qGRcK8UupXA,1090
|
|
22
23
|
snapctl/utils/helper.py,sha256=8HrLqX9RINJdadR7YI8epOXIfXOBDusXqvoR0kq6zok,5419
|
|
23
|
-
snapctl-0.46.
|
|
24
|
-
snapctl-0.46.
|
|
25
|
-
snapctl-0.46.
|
|
26
|
-
snapctl-0.46.
|
|
27
|
-
snapctl-0.46.
|
|
24
|
+
snapctl-0.46.4.dist-info/LICENSE,sha256=6AcXm54KFSpmUI1ji9NIBd4Xl-DtjTqiyjBzfVb_CEk,2804
|
|
25
|
+
snapctl-0.46.4.dist-info/METADATA,sha256=BzQd-tejYp8-D29mohAfjcu5KN1p0z4sydwjAXOUEBk,34343
|
|
26
|
+
snapctl-0.46.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
27
|
+
snapctl-0.46.4.dist-info/entry_points.txt,sha256=tkKW9MzmFdRs6Bgkv29G78i9WEBK4WIOWunPfe3t2Wg,44
|
|
28
|
+
snapctl-0.46.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|