Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S supervisor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Turris
  • updater
  • supervisor
  • Merge requests
  • !20

Merged
Created Jan 27, 2022 by Karel Koci@kkoci🤘Owner

svupdater: add ability to set auto-approve window

  • Overview 25
  • Commits 2
  • Changes 9

The idea here is that user can set when exactly updater can update system by setting start and end periodic times. We use cron syntax for that.

There are few hacks that we had to implement to ensure that it is not fragile. The first issue is combination with execution and random delay. We want to always hit the allowed window so we can install any possible update so we need to tweak the random delay to fix that. Also we had to make sure that updater considers all hours of the day. We run updater by cron every two hours now with still the same two hours random delay. This way updater can hit every possible allowed window.

The combination of delayed approvals and approval window results in wait for delay first and only after that installation in allowed window. Thus both of them apply.

Implements #17 (closed).

Edited Feb 15, 2022 by Miroslav Hanak
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feature/allowed-window