snapctl 0.46.3__tar.gz → 0.46.4__tar.gz
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-0.46.3 → snapctl-0.46.4}/PKG-INFO +1 -1
- {snapctl-0.46.3 → snapctl-0.46.4}/pyproject.toml +1 -1
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/commands/byosnap.py +6 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/config/constants.py +1 -1
- snapctl-0.46.4/snapctl/data/releases/beta-0.46.4.mdx +7 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/LICENSE +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/README.md +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/__init__.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/__main__.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/commands/__init__.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/commands/byogs.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/commands/game.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/commands/generate.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/commands/release_notes.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/commands/snapend.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/config/__init__.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/config/endpoints.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/config/hashes.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/data/profiles/snapser-byosnap-profile.json +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/data/profiles/snapser-byosnap-profile.yaml +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/data/releases/beta-0.46.0.mdx +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/main.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/types/__init__.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/types/definitions.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/utils/__init__.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/utils/echo.py +0 -0
- {snapctl-0.46.3 → snapctl-0.46.4}/snapctl/utils/helper.py +0 -0
|
@@ -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. ' +
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|