Stéphane Bidoul
cb7dfb4642
Tweak comments and todos
2021-11-06 12:08:35 +01:00
Stéphane Bidoul
bb9b372933
Ignore unsupported and non-main branches in github webhook
2021-11-06 11:54:46 +01:00
Stéphane Bidoul
b56983195d
Improve configurability and detection of supported branches
2021-11-06 11:50:27 +01:00
Stéphane Bidoul
f6a6c9575f
Rename GitHub status context name
2021-11-06 11:25:04 +01:00
Stéphane Bidoul
a0052c878b
Tweak routes
2021-11-06 11:02:12 +01:00
Stéphane Bidoul
87b1126721
Lowercase supported_repos setting
2021-11-06 11:01:34 +01:00
Stéphane Bidoul
24f97db3b3
Remove pre-commit job
...
We use pre-commit.ci instead
2021-11-06 00:03:37 +01:00
Stéphane Bidoul
b28029a37e
Require pre-commit for building image
2021-11-05 23:53:31 +01:00
Stéphane Bidoul
98393b9af3
ci: add missing authentication in build image step
2021-11-05 23:50:51 +01:00
Stéphane Bidoul
f7f8c03897
Build container image
2021-11-05 23:43:19 +01:00
Stéphane Bidoul
3339259346
Setup env vars for tests
2021-11-05 21:26:55 +01:00
Stéphane Bidoul
5f46b29886
ci: add missing checkout
2021-11-05 21:04:36 +01:00
Stéphane Bidoul
6885ff6b3c
Bootstrap test suite
2021-11-05 20:59:39 +01:00
Stéphane Bidoul
8bfd75d049
Do not notify GitHub statuses if nothing changed
2021-11-05 18:52:40 +01:00
Stéphane Bidoul
8b10c209bd
Better pattern for worker wakeup
2021-11-05 18:45:24 +01:00
Stéphane Bidoul
903a05fc0e
Report build statuses to GitHub
2021-11-05 18:28:52 +01:00
Stéphane Bidoul
968f94c1e7
Allow customizing build environment variables
2021-11-05 18:23:02 +01:00
Stéphane Bidoul
e1a2a4d5c4
Improve readme
2021-11-05 18:22:15 +01:00
Stéphane Bidoul
56a57de966
Add timeout on initialization job
2021-11-05 10:21:38 +01:00
Stéphane Bidoul
a5e8185abd
Rename method for clarity
2021-11-05 10:08:39 +01:00
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