File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed
src/agentscope_runtime/common/container_clients Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 11[project ]
22name = " agentscope-runtime"
3- version = " 0.2.0b1 "
3+ version = " 0.2.0b2 "
44description = " A production-ready runtime framework for agent applications, providing secure sandboxed execution environments and scalable deployment solutions with multi-framework support."
55readme = " README.md"
66requires-python = " >=3.10"
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2- # pylint: disable=too-many-branches, self-assigning-variable
3- # pylint: disable=too-many-statements
4-
5- import hashlib
6- import logging
2+ # pylint: disable=too-many-branches,too-many-statements
73import time
4+ import hashlib
85import traceback
6+ import logging
7+
98from typing import Optional , Tuple
109
1110from kubernetes import client
1615
1716logger = logging .getLogger (__name__ )
1817
19- DEFAULT_IMAGE_REGISTRY = "agentscope-registry.ap-southeast-1.cr.aliyuncs.com"
20-
2118
2219class KubernetesClient (BaseClient ):
2320 def __init__ (
2421 self ,
2522 config = None ,
26- image_registry : Optional [str ] = DEFAULT_IMAGE_REGISTRY ,
23+ image_registry : Optional [str ] = None ,
2724 ):
2825 self .config = config
2926 namespace = self .config .k8s_namespace
@@ -157,11 +154,7 @@ def _create_pod_spec(
157154 container_name = name or "main-container"
158155
159156 # Container specification
160- # TODO: use image from docker registry first
161-
162- if not self .image_registry :
163- image = image
164- else :
157+ if self .image_registry :
165158 image = f"{ self .image_registry } /{ image } "
166159
167160 container = client .V1Container (
You can’t perform that action at this time.
0 commit comments