Mise a jour automatique programmee (crontab) par stack

- planification crontab par stack (autoupdate.json), incompatible avec l'exclusion
- scheduler a la minute ; pull puis down + up -d seulement si une image a change (mode autoapply)
- API PUT .../targets/{t}/auto et GET /api/cron (apercu des prochaines executions)
- interface : option dans le detail, badge sarcelle, vue de suivi "Mises a jour auto"
- TZ dans docker-compose / .env.example (tzdata embarque)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LNfwm6UCYFyvNQNSF5i9Gy
This commit is contained in:
claude BotandClaude Opus 5.5 committed 2026-11-23 10:12:12 +01:00
1 parent 54cbab17cb
commit 51691d7b8a
16 files changed
+1010 -7

No files matched your search

+4
View File
@@ -28,6 +28,7 @@ func (m *Manager) saveExclusionsLocked() error {
// dropExclusionsLocked oublie les exclusions d'une connexion supprimée.
func (m *Manager) dropExclusionsLocked(targetKey string) {
m.dropAutoLocked(targetKey)
prefix := targetKey + ":"
n := len(m.excluded)
for k := range m.excluded {
@@ -80,5 +81,8 @@ func (m *Manager) SetExcluded(serverID, targetID, dir string, on bool) error {
}
return err
}
if on { // exclusion et mise a jour auto sont incompatibles : l'exclusion l'emporte
m.unscheduleLocked(key)
}
return nil
}