Skip to content

feat: report and apply maintenance through the contract - #48

Merged
utkuerol merged 3 commits into
mainfrom
feat/maintenance
Nov 7, 2026
Merged

utkuerol merged 3 commits into
mainfrom
feat/maintenance

Conversation

@utkuerol

@utkuerol utkuerol commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Adds the maintenance part of the contract that marketplace relays and applies since 1.115.0.

  • ServiceStatus.Maintenance: pending model.MaintenanceItems (status: pending, user-facing description). Serialized with omitzero: nil leaves the field out (maintenance not supported), an empty list reports [] (nothing pending).
  • Maintenance capability, opt-in like Backups: ApplyMaintenance(ctx, id), mounted by RegisterMaintenanceRoutes as POST /{id}/maintenance → 202.
  • ErrConflict → 409 (busy or changed meanwhile) and ErrServiceUnavailable → 503 (not healthy enough), the two codes marketplace turns into retry hints.

Not breaking: providers that don't opt in are unchanged.

Adds the maintenance part of the contract that marketplace relays and
applies since codesphere-cloud/codesphere-monorepo#22843:
`ServiceStatus.Maintenance` (pending items with a user-facing
description) and the opt-in `Maintenance` capability, mounted with
`RegisterMaintenanceRoutes` as POST /{id}/maintenance (202).

`ErrConflict` maps to 409 and `ErrServiceUnavailable` to 503, which
marketplace turns into a retry hint.
@utkuerol
utkuerol requested a review from a team as a code owner November 6, 2026 19:35
@utkuerol
utkuerol merged commit e1493ea into main Nov 7, 2026
3 checks passed
@utkuerol
utkuerol deleted the feat/maintenance branch November 7, 2026 09:38
utkuerol pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.12.0](v0.11.0...v0.12.0)
(2026-11-07)


### Features

* report and apply maintenance through the contract
([#48](#48))
([e1493ea](e1493ea))


### Bug Fixes

* **deps:** update module github.com/onsi/ginkgo/v2 to v2.34.0
([#47](#47))
([b6cb56c](b6cb56c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant