fix(operator): 回到 Starting 时清掉 readySignalAt,每次启动都记入启动时长指标

This commit is contained in:
Lemon-miaow committed 2026-09-27 13:32:25 +08:00
1 parent 67a7e27f8d
commit c272e2ea24
4 files changed
+52 -2

No files matched your search

@@ -328,7 +328,8 @@ type MinecraftServerStatus struct {
Players PlayersStatus `json:"players,omitempty"`
// LiveMotd is the MOTD currently advertised for the active phase.
LiveMotd string `json:"liveMotd,omitempty"`
// ReadySignalAt is when the first RCON probe succeeded.
// ReadySignalAt is when the first RCON probe of the current run succeeded.
// Every Starting pass clears it, so each start is measured once.
ReadySignalAt *metav1.Time `json:"readySignalAt,omitempty"`
// StartRequestedAt is when the current start attempt was first observed
// (the first Starting reconcile after desiredState=Running). It anchors the