snapctl 0.46.2__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.

Files changed (27) hide show
  1. {snapctl-0.46.2 → snapctl-0.46.4}/PKG-INFO +1 -1
  2. {snapctl-0.46.2 → snapctl-0.46.4}/pyproject.toml +1 -1
  3. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/commands/byogs.py +2 -4
  4. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/commands/byosnap.py +6 -0
  5. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/config/constants.py +1 -1
  6. snapctl-0.46.4/snapctl/data/releases/beta-0.46.4.mdx +7 -0
  7. {snapctl-0.46.2 → snapctl-0.46.4}/LICENSE +0 -0
  8. {snapctl-0.46.2 → snapctl-0.46.4}/README.md +0 -0
  9. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/__init__.py +0 -0
  10. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/__main__.py +0 -0
  11. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/commands/__init__.py +0 -0
  12. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/commands/game.py +0 -0
  13. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/commands/generate.py +0 -0
  14. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/commands/release_notes.py +0 -0
  15. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/commands/snapend.py +0 -0
  16. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/config/__init__.py +0 -0
  17. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/config/endpoints.py +0 -0
  18. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/config/hashes.py +0 -0
  19. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/data/profiles/snapser-byosnap-profile.json +0 -0
  20. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/data/profiles/snapser-byosnap-profile.yaml +0 -0
  21. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/data/releases/beta-0.46.0.mdx +0 -0
  22. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/main.py +0 -0
  23. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/types/__init__.py +0 -0
  24. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/types/definitions.py +0 -0
  25. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/utils/__init__.py +0 -0
  26. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/utils/echo.py +0 -0
  27. {snapctl-0.46.2 → snapctl-0.46.4}/snapctl/utils/helper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snapctl
3
- Version: 0.46.2
3
+ Version: 0.46.4
4
4
  Summary: Snapser CLI Tool
5
5
  Author: Ajinkya Apte
6
6
  Author-email: aj@snapser.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "snapctl"
3
- version = "0.46.2"
3
+ version = "0.46.4"
4
4
  description = "Snapser CLI Tool"
5
5
  authors = ["Ajinkya Apte <aj@snapser.com>"]
6
6
  readme = "README.md"
@@ -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
 
@@ -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. ' +
@@ -3,7 +3,7 @@ Constants used by snapctl
3
3
  """
4
4
  COMPANY_NAME = 'Snapser'
5
5
  VERSION_PREFIX = 'beta-'
6
- VERSION = '0.46.2'
6
+ VERSION = '0.46.4'
7
7
  CONFIG_FILE_MAC = '~/.snapser/config'
8
8
  CONFIG_FILE_WIN = '%homepath%\\.snapser\\config'
9
9
 
@@ -0,0 +1,7 @@
1
+ ## beta-0.46.4
2
+ ##### Feb 20, 2025
3
+
4
+ ### Bug fix
5
+ - **Byosnap**:
6
+ - Fixed a bug where the BYOSnap profile's internal port name was not being validated for
7
+ character length.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes