llama-deploy-core 0.4.1__tar.gz → 0.4.3__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.
Files changed (24) hide show
  1. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/PKG-INFO +1 -1
  2. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/pyproject.toml +1 -1
  3. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/schema/deployments.py +27 -3
  4. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/README.md +0 -0
  5. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/__init__.py +0 -0
  6. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/_compat.py +0 -0
  7. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/client/manage_client.py +0 -0
  8. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/client/ssl_util.py +0 -0
  9. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/config.py +0 -0
  10. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/deployment_config.py +0 -0
  11. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/git/git_util.py +0 -0
  12. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/iter_utils.py +0 -0
  13. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/path_util.py +0 -0
  14. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/py.typed +0 -0
  15. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/schema/__init__.py +0 -0
  16. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/schema/base.py +0 -0
  17. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/schema/git_validation.py +0 -0
  18. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/schema/projects.py +0 -0
  19. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/schema/public.py +0 -0
  20. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/server/manage_api/__init__.py +0 -0
  21. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/server/manage_api/_abstract_deployments_service.py +0 -0
  22. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/server/manage_api/_create_deployments_router.py +0 -0
  23. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/server/manage_api/_exceptions.py +0 -0
  24. {llama_deploy_core-0.4.1 → llama_deploy_core-0.4.3}/src/llama_deploy/core/ui_build.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: llama-deploy-core
3
- Version: 0.4.1
3
+ Version: 0.4.3
4
4
  Summary: Core models and schemas for LlamaDeploy
5
5
  License: MIT
6
6
  Requires-Dist: fastapi>=0.115.0
@@ -13,7 +13,7 @@ dev = [
13
13
 
14
14
  [project]
15
15
  name = "llama-deploy-core"
16
- version = "0.4.1"
16
+ version = "0.4.3"
17
17
  description = "Core models and schemas for LlamaDeploy"
18
18
  readme = "README.md"
19
19
  license = {text = "MIT"}
@@ -6,6 +6,21 @@ from pydantic import HttpUrl
6
6
 
7
7
  from .base import Base
8
8
 
9
+ APPSERVER_TAG_PREFIX = "appserver-"
10
+
11
+
12
+ def version_to_image_tag(version: str) -> str:
13
+ """Convert a llama_deploy_version like '0.4.2' to an image tag like 'appserver-0.4.2'."""
14
+ return f"{APPSERVER_TAG_PREFIX}{version}"
15
+
16
+
17
+ def image_tag_to_version(tag: str) -> str | None:
18
+ """Extract version from image tag, or None if tag doesn't follow the appserver-X.Y.Z convention."""
19
+ if tag.startswith(APPSERVER_TAG_PREFIX):
20
+ return tag.removeprefix(APPSERVER_TAG_PREFIX)
21
+ return None
22
+
23
+
9
24
  # K8s CRD phase values
10
25
  LlamaDeploymentPhase = Literal[
11
26
  "Syncing", # Initial reconciliation phase - controller is processing the deployment
@@ -132,6 +147,10 @@ class DeploymentUpdate(Base):
132
147
  static_assets_path: Path | None = None
133
148
  # allow updating version selector
134
149
  llama_deploy_version: str | None = None
150
+ # explicit image tag (takes precedence over llama_deploy_version)
151
+ image_tag: str | None = None
152
+ # bump the appserver image to the cluster's current default version
153
+ bump_to_latest_appserver: bool = False
135
154
 
136
155
 
137
156
  class DeploymentUpdateResult(Base):
@@ -210,9 +229,11 @@ def apply_deployment_update(
210
229
  # String value means add/update this secret
211
230
  secret_adds[key] = value
212
231
 
213
- # Handle version selector
214
- if update.llama_deploy_version is not None:
215
- updated_spec.imageTag = f"appserver-{update.llama_deploy_version}"
232
+ # Handle image tag / version selector (image_tag takes precedence)
233
+ if update.image_tag is not None:
234
+ updated_spec.imageTag = update.image_tag
235
+ elif update.llama_deploy_version is not None:
236
+ updated_spec.imageTag = version_to_image_tag(update.llama_deploy_version)
216
237
 
217
238
  return DeploymentUpdateResult(
218
239
  updated_spec=updated_spec,
@@ -237,6 +258,7 @@ class ReleaseHistoryEntry(Base):
237
258
  """
238
259
 
239
260
  gitSha: str
261
+ imageTag: str | None = None
240
262
  releasedAt: datetime
241
263
 
242
264
 
@@ -246,6 +268,7 @@ class ReleaseHistoryItem(Base):
246
268
  """
247
269
 
248
270
  git_sha: str
271
+ image_tag: str | None = None
249
272
  released_at: datetime
250
273
 
251
274
 
@@ -256,3 +279,4 @@ class DeploymentHistoryResponse(Base):
256
279
 
257
280
  class RollbackRequest(Base):
258
281
  git_sha: str
282
+ image_tag: str | None = None