fix(servers): 主人可放弃服务器、管理员可删除服务器,由 reaper 归档世界后释放或移除
This commit is contained in:
55 files changed
+2774
-119
No files matched your search
@@ -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:"-"`
|
||||
|
||||
Reference in new issue
Block a user