Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions plugins/nemo-deployments/openapi/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class K8sDeploymentBackend(DeploymentBackend):
"""Manage deployments and volumes as native Kubernetes objects.

Job-backed deployments (``restart_policy`` Never/OnFailure) are implemented in phase 3.
Deployment + Service (Always) is implemented in phase 4; full PodSpec compilation lands in phase 5.
Deployment + Service (Always) is implemented in phase 4; full PodSpec compilation is phase 5.
"""

_clients: KubernetesClients
Expand Down Expand Up @@ -146,7 +146,7 @@ async def read_status(self, *, workspace: str, name: str) -> BackendStatusUpdate

if config.restart_policy == "Always":
try:
container = deployment_ops.validate_config_for_deployment(config)
deployment_ops.validate_config_for_deployment(config)
except job_ops.DeploymentConfigError as exc:
return BackendStatusUpdate(status="FAILED", status_message=str(exc))
return await deployment_ops.read_deployment_status(
Expand All @@ -158,7 +158,7 @@ async def read_status(self, *, workspace: str, name: str) -> BackendStatusUpdate
config_name=config.name,
restart_policy=config.restart_policy,
backoff_limit=config.backoff_limit,
container=container,
containers=tuple(config.containers),
)

return await job_ops.read_job_status(
Expand Down
Loading