fix(servers): 主人可放弃服务器、管理员可删除服务器,由 reaper 归档世界后释放或移除

This commit is contained in:
Lemon-miaow committed 2026-09-27 03:49:49 +08:00
1 parent 4a26bf4ca0
commit 0e08fa7ced
55 files changed
+2774 -119

No files matched your search

+7
View File
@@ -46,6 +46,13 @@ type ServerInfo struct {
// restart backoff and may yet come up on its own.
AutoRestarts int32 `json:"autoRestarts,omitempty"`
StartGaveUp bool `json:"startGaveUp,omitempty"`
// ReaperExempt marks a system server (spec.reaperExempt, the lobby): the
// reaper never touches it, so it cannot be given up or deleted either.
ReaperExempt bool `json:"reaperExempt,omitempty"`
// Retiring is the pending request to give the server up or delete it. It is
// business state from Postgres, joined onto the owner's and staff's view by
// the status route; the cluster never sets it.
Retiring *RetireState `json:"retiring,omitempty"`
// Resources is the spec's pod resource block. It stays off the wire; a spec
// patch reads it so the fields the admin left out keep their values.
Resources corev1.ResourceRequirements `json:"-"`