Skip to content

Commit 4574212

Browse files
JAORMXclaude
andcommitted
Add upgrade-check REST endpoints for workloads
CLI, Studio, and automation need a single backend source of truth for upgrade availability instead of each client reimplementing registry drift detection. Expose the Phase A checker over the existing workloads API. Add GET /api/v1beta/workloads/upgrade-check (batch) and GET /api/v1beta/workloads/{name}/upgrade-check (single). The batch handler reuses the exact group/all authorization scoping of the list endpoint and intersects it with the enumerated run configs, so it can never report a workload outside the caller's scope. Responses carry only non-sensitive CheckResult metadata; secret env-var defaults are cleared. Both routes are read-only and skip image pulls, so they use the standard timeout. Regenerate the OpenAPI spec. The dedicated apply endpoint (POST .../upgrade) follows once the Applier lands (RFC THV-0068, phase B). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3350917 commit 4574212

7 files changed

Lines changed: 1434 additions & 5 deletions

File tree

docs/server/docs.go

Lines changed: 273 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)