Compare commits

...
Author SHA1 Message Date
m 990928618d fix(supervisor): stabilize control JSON contract
CI / test (push) Failing after 31s
2026-08-29 12:41:22 +03:00
m 9fac8284f5 merge: initialize supervisor state volume permissions
CI / test (push) Failing after 27s
2026-08-29 12:39:01 +03:00
m 7d9a5edee5 fix(deploy): initialize supervisor volume permissions
CI / test (push) Failing after 32s
2026-08-29 12:38:53 +03:00
m 32d3f318a5 merge: independent supervisor control plane
CI / test (push) Failing after 31s
2026-08-29 12:33:54 +03:00
2 changed files with 15 additions and 14 deletions
+1
View File
@@ -11,6 +11,7 @@ ARG SOURCE_REVISION=unknown
LABEL org.opencontainers.image.revision=$SOURCE_REVISION \ LABEL org.opencontainers.image.revision=$SOURCE_REVISION \
org.opencontainers.image.source="https://git.cin.su/m/Assistant.git" org.opencontainers.image.source="https://git.cin.su/m/Assistant.git"
RUN addgroup -S assistant && adduser -S -G assistant assistant RUN addgroup -S assistant && adduser -S -G assistant assistant
RUN mkdir -p /var/lib/supervisor && chown assistant:assistant /var/lib/supervisor
USER assistant USER assistant
COPY --from=build /out/runtime /usr/local/bin/assistant-runtime COPY --from=build /out/runtime /usr/local/bin/assistant-runtime
ENTRYPOINT ["/usr/local/bin/assistant-runtime"] ENTRYPOINT ["/usr/local/bin/assistant-runtime"]
+14 -14
View File
@@ -18,24 +18,24 @@ const (
) )
type Release struct { type Release struct {
ID string ID string `json:"id"`
Version string Version string `json:"version"`
State ReleaseState State ReleaseState `json:"state"`
LastKnownGood bool LastKnownGood bool `json:"last_known_good"`
} }
type Observation struct { type Observation struct {
ReleaseID string ReleaseID string `json:"release_id"`
Ready bool Ready bool `json:"ready"`
Reason string Reason string `json:"reason"`
ObservedAtUnixMillis int64 ObservedAtUnixMillis int64 `json:"observed_at_unix_millis"`
} }
type Lifeboat struct { type Lifeboat struct {
Current Release Current Release `json:"current"`
LastKnownGood Release LastKnownGood Release `json:"last_known_good"`
Observations []Observation Observations []Observation `json:"observations"`
TrafficMode TrafficMode TrafficMode TrafficMode `json:"traffic_mode"`
StableUpstream string StableUpstream string `json:"stable_upstream"`
CandidateUpstream string CandidateUpstream string `json:"candidate_upstream"`
} }
func (l *Lifeboat) Start(candidate Release) bool { func (l *Lifeboat) Start(candidate Release) bool {