agola/internal/services
Simone Gotti f812597410 runservice: maintenance/export/import
Implement runservice maintenance mode and export/import.

When runservice is set in maintenance mode it'll start only the maintenance and
export/import handlers.

Setting maintenance mode will set a key in etcd so all the runservice instances
will detect it and enter in maintenance mode. This is done asyncronously so it
could take some time (future improvements will add some api to show all the
runservice states)

Export is always available and will export the datamanager contents. Currently
only datamanager contents are exported (no logs and workspace archives).

Import is available only during maintenance, given a datamanager export will
import it and reset etcd to this import state.
2019-07-29 11:52:30 +02:00
..
common *: use vanity url 2019-07-01 11:40:20 +02:00
config config: remove unused gatewayURL from gitserver config 2019-07-04 10:55:12 +02:00
configstore configstore: maintenance/export/import 2019-07-26 10:55:04 +02:00
executor *: use sleep timer in loops 2019-07-25 16:22:54 +02:00
gateway util: use context in backoff 2019-07-26 10:36:11 +02:00
gitserver service/*: log error only if nil 2019-07-04 15:50:37 +02:00
notification *: use sleep timer in loops 2019-07-25 16:22:54 +02:00
runservice runservice: maintenance/export/import 2019-07-29 11:52:30 +02:00
scheduler *: use sleep timer in loops 2019-07-25 16:22:54 +02:00
types *: add remote source option to disable registration/login 2019-07-05 13:33:29 +02:00