kalavai-client 0.7.7__tar.gz → 0.7.8__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 kalavai-client might be problematic. Click here for more details.
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/PKG-INFO +1 -1
- kalavai_client-0.7.8/kalavai_client/__init__.py +2 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/apps.yaml +1 -1
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/default_pool_config.yaml +1 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/cli.py +2 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/core.py +5 -1
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/utils.py +14 -2
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/pyproject.toml +1 -1
- kalavai_client-0.7.7/kalavai_client/__init__.py +0 -2
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/LICENSE +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/README.md +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/__main__.py +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/__init__.py +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/docker-compose-gui.yaml +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/docker-compose-template.yaml +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/model_deployment_values.yaml +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/nginx.conf +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/pool_config_template.yaml +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/user_workspace.yaml +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/user_workspace_values.yaml +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/auth.py +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/bridge_api.py +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/bridge_models.py +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/cluster.py +0 -0
- {kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/env.py +0 -0
|
@@ -403,6 +403,7 @@ def pool__start(
|
|
|
403
403
|
pool_config_file=None,
|
|
404
404
|
apps: list=None,
|
|
405
405
|
mtu: str=None,
|
|
406
|
+
watcher_image_tag: str=None,
|
|
406
407
|
platform="amd64",
|
|
407
408
|
ip_address: str=None,
|
|
408
409
|
location: str=None,
|
|
@@ -454,6 +455,7 @@ def pool__start(
|
|
|
454
455
|
ip_address=ip_address,
|
|
455
456
|
location=location,
|
|
456
457
|
target_platform=platform,
|
|
458
|
+
watcher_image_tag=watcher_image_tag,
|
|
457
459
|
pool_config_file=pool_config_file,
|
|
458
460
|
apps=apps,
|
|
459
461
|
num_gpus=input_gpus(non_interactive=non_interactive),
|
|
@@ -47,6 +47,7 @@ from kalavai_client.utils import (
|
|
|
47
47
|
WRITE_AUTH_KEY,
|
|
48
48
|
WATCHER_PORT_KEY,
|
|
49
49
|
WATCHER_SERVICE_KEY,
|
|
50
|
+
WATCHER_IMAGE_TAG_KEY,
|
|
50
51
|
USER_NODE_LABEL_KEY,
|
|
51
52
|
ALLOW_UNREGISTERED_USER_KEY,
|
|
52
53
|
KALAVAI_AUTH
|
|
@@ -764,6 +765,7 @@ def create_pool(
|
|
|
764
765
|
ip_address: str=None,
|
|
765
766
|
location: str=None,
|
|
766
767
|
target_platform: str="amd64",
|
|
768
|
+
watcher_image_tag: str=None,
|
|
767
769
|
pool_config_file: str=None,
|
|
768
770
|
description: str="",
|
|
769
771
|
token_mode: TokenType=TokenType.USER,
|
|
@@ -799,6 +801,7 @@ def create_pool(
|
|
|
799
801
|
config_values = yaml.safe_load(f)
|
|
800
802
|
# use default values if not provided
|
|
801
803
|
try:
|
|
804
|
+
watcher_image_tag = config_values["server"]["watcher_image_tag"] if watcher_image_tag is None else watcher_image_tag
|
|
802
805
|
cluster_name = config_values["server"]["name"] if cluster_name is None else cluster_name
|
|
803
806
|
ip_address = config_values["server"]["ip_address"] if ip_address is None else ip_address
|
|
804
807
|
location = config_values["server"]["location"] if location is None else location
|
|
@@ -856,7 +859,8 @@ def create_pool(
|
|
|
856
859
|
WATCHER_PORT_KEY: DEFAULT_WATCHER_PORT,
|
|
857
860
|
WATCHER_SERVICE_KEY: watcher_service,
|
|
858
861
|
USER_NODE_LABEL_KEY: USER_NODE_LABEL,
|
|
859
|
-
|
|
862
|
+
WATCHER_IMAGE_TAG_KEY: watcher_image_tag,
|
|
863
|
+
ALLOW_UNREGISTERED_USER_KEY: True # Change this if only registered users are allowed
|
|
860
864
|
}
|
|
861
865
|
|
|
862
866
|
store_server_info(
|
|
@@ -44,6 +44,7 @@ USER_API_KEY = "user_api_key"
|
|
|
44
44
|
READONLY_AUTH_KEY = "watcher_readonly_key"
|
|
45
45
|
WATCHER_SERVICE_KEY = "watcher_service"
|
|
46
46
|
WATCHER_PORT_KEY = "watcher_port"
|
|
47
|
+
WATCHER_IMAGE_TAG_KEY = "watcher_image_tag"
|
|
47
48
|
ENDPOINT_PORTS_KEY = "endpoint_ports"
|
|
48
49
|
TEMPLATE_ID_FIELD = "id_field"
|
|
49
50
|
TEMPLATE_ID_KEY = "deployment_id"
|
|
@@ -155,8 +156,19 @@ def extract_auth_token(headers):
|
|
|
155
156
|
return {"error": str(e)}
|
|
156
157
|
|
|
157
158
|
|
|
158
|
-
def generate_compose_config(
|
|
159
|
-
|
|
159
|
+
def generate_compose_config(
|
|
160
|
+
role,
|
|
161
|
+
node_name,
|
|
162
|
+
mtu="1420",
|
|
163
|
+
target_platform="amd64",
|
|
164
|
+
write_to_file=True,
|
|
165
|
+
node_ip_address="0.0.0.0",
|
|
166
|
+
num_gpus=0,
|
|
167
|
+
node_labels=None,
|
|
168
|
+
pool_ip=None,
|
|
169
|
+
vpn_token=None,
|
|
170
|
+
pool_token=None
|
|
171
|
+
):
|
|
160
172
|
if node_labels is not None:
|
|
161
173
|
node_labels = " ".join([f"--node-label {key}={value}" for key, value in node_labels.items()])
|
|
162
174
|
rand_suffix = uuid.uuid4().hex[:8]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/docker-compose-template.yaml
RENAMED
|
File without changes
|
{kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/model_deployment_values.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/pool_config_template.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{kalavai_client-0.7.7 → kalavai_client-0.7.8}/kalavai_client/assets/user_workspace_values.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|