Commit graph

38 commits

Author SHA1 Message Date
Stéphane Bidoul
3c1b4b3fb2
Make GitHub calls async 2021-11-05 10:07:05 +01:00
Stéphane Bidoul
68929b6ee7
Update requirements.txt 2021-11-05 09:45:22 +01:00
Stéphane Bidoul
de2a95dc7d
Add Dockerfile 2021-11-05 09:44:34 +01:00
Stéphane Bidoul
e100c838a5
Tweak a couple of log messages 2021-11-05 09:41:12 +01:00
Stéphane Bidoul
dd81c4d784
Update README 2021-11-05 09:40:56 +01:00
Stéphane Bidoul
c56556c3ce
Add stopping state 2021-11-04 09:49:45 +01:00
Stéphane Bidoul
1f52025f97
Use finalizers to track cleanup 2021-11-04 09:37:40 +01:00
Stéphane Bidoul
d79cb6223e
Use official kubernetes client
Because kubernetes_asyncio watcher have correctness issues,
as they seem to re-emit events that pre-date the initial load.

Although I ended up having to implement an infinite watcher,
to handle socket timeout errors...
2021-11-04 09:36:01 +01:00
Stéphane Bidoul
a2ed957819
Simplify API 2021-11-01 00:02:34 +01:00
Stéphane Bidoul
daa920c845
Fix a couple of type issues 2021-10-31 17:59:55 +01:00
Stéphane Bidoul
5a048f7ae8
Cosmetics 2021-10-31 17:12:17 +01:00
Stéphane Bidoul
5a4f2ad83a
Delete initialization job before undeploying
To reduce potential conflicts between the cleanup job
and the initialization job.
2021-10-31 17:12:17 +01:00
Stéphane Bidoul
62bdcb6cd6
last_scaled may not be null
It defaults to the creation timestamp
2021-10-31 17:02:43 +01:00
Stéphane Bidoul
851916b087
Factorize get build by name 2021-10-31 17:01:58 +01:00
Stéphane Bidoul
f5d232c3af
More precise change detection
Fix: we read spec.replicas instead of status.replicas.
Do not wakeup needlessly when irrelevant changes
happen in deployments.
Better logging.
2021-10-31 16:21:36 +01:00
Stéphane Bidoul
9627729ba2
Support GitHub token 2021-10-31 11:05:38 +01:00
Stéphane Bidoul
d6d9ac8a7f
Use jobs for db initialization an cleanup
It turns out that init containers do not work, as we
can't easily detect failures and access init log as they
restart constantly. So we use initialization jobs.
We take the opportunity to use cleanup jobs too, so
all knowledge of runtime content is in the kubefiles.
2021-10-31 11:04:51 +01:00
Stéphane Bidoul
1f137bbdc8
Do not create new deployment if build already exist 2021-10-29 00:32:15 +02:00
Stéphane Bidoul
c2b2d88f4c
Fix starter limits 2021-10-29 00:27:17 +02:00
Stéphane Bidoul
d1e23fe551
Logging and docs improvements 2021-10-29 00:23:13 +02:00
Stéphane Bidoul
8167fad5ec
Tweak comments 2021-10-28 19:12:55 +02:00
Stéphane Bidoul
6f90869ef7
Modernize a few type annotations 2021-10-28 19:09:27 +02:00
Stéphane Bidoul
c719e90e6c
Tweak comments 2021-10-28 19:09:03 +02:00
Stéphane Bidoul
b13e0dc8b1
Fix a few typing issues and bug revealed by mypy 2021-10-28 19:04:31 +02:00
Stéphane Bidoul
5ee536076f
Bump version 2021-10-28 18:54:12 +02:00
Stéphane Bidoul
9982c80b41
Handle more timestamps 2021-10-28 18:51:55 +02:00
Stéphane Bidoul
d2e23443e1
Tweak README 2021-10-28 18:23:30 +02:00
Stéphane Bidoul
d90ffad1aa
Update README 2021-10-28 18:20:21 +02:00
Stéphane Bidoul
5a42490077
Add .env sample 2021-10-28 17:19:29 +02:00
Stéphane Bidoul
80923e4849
Update requirements.txt 2021-10-28 17:16:37 +02:00
Stéphane Bidoul
8f7aa98224
Show max values in /status api 2021-10-28 17:07:42 +02:00
Stéphane Bidoul
28c109de6e
Fix loop in starter/stopper/undeployer 2021-10-28 15:31:24 +02:00
Stéphane Bidoul
e33ad90745
It's taking shape 2021-10-28 12:52:23 +02:00
Stéphane Bidoul
6bd0c8e7cd
Look ma, no database 2021-10-25 19:08:18 +02:00
Stéphane Bidoul
488d620f40
WIP
- commit/rollback transactions
- identify supported branch prefixes
- query builds api
- better exceptions
2021-10-17 17:24:56 +02:00
Stéphane Bidoul
c2c2e4bac9
Add basic CI 2021-10-17 15:44:23 +02:00
Stéphane Bidoul
6020c9b25b
Some more typing 2021-10-17 15:43:14 +02:00
Stéphane Bidoul
ac0bd848d4
Initial commit 2021-10-17 15:19:34 +02:00