Deploy a provider by version.
Deploys the specified version or the latest successful build if no version is provided. Activates resource schemas from the build during deployment.
Args: provider_id: Unique identifier for the provider. request: Deploy request with optional version (defaults to latest successful). service: Provider service for deployment orchestration.
Returns: ProviderStatus with status, version, updated_at, and healthy flag.
Raises: HTTPException: 404 if build not found or no successful build exists. HTTPException: 400 if specified build is not deployable. HTTPException: 500 if deployment fails.
Request to deploy a provider.
If version is omitted, deploys the latest successful build.
Successful Response
User-facing provider deployment status.
Minimal representation without internal K8s details like replica counts, deployment names, or container images.
Attributes: status: Current deployment status. version: CalVer version string of deployed build. updated_at: Last update timestamp. healthy: Whether the provider is healthy (available with ready replicas).