Stéphane Bidoul
801790ed05
Make filestore storage class configurable
...
Also, use kustomize patches instead of vars.
2021-11-09 20:03:37 +01:00
Stéphane Bidoul
db51e28dbd
Use a PVC for the Odoo filestore
2021-11-09 20:03:37 +01:00
Stéphane Bidoul
4263c5bcee
Merge pull request #1 from sbidoul/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-11-08 20:33:53 +01:00
pre-commit-ci[bot]
4e5cfe468d
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 21.9b0 → 21.10b0](https://github.com/psf/black/compare/21.9b0...21.10b0 )
- https://github.com/pre-commit/mirrors-isort → https://github.com/PyCQA/isort
- [github.com/PyCQA/isort: v5.9.3 → 5.10.0](https://github.com/PyCQA/isort/compare/v5.9.3...5.10.0 )
2021-11-08 17:49:28 +00:00
Stéphane Bidoul
0dd953160c
Let uvicorn choose the event loop
2021-11-07 22:31:32 +01:00
Stéphane Bidoul
3ea0e8e693
Add kubectl to Dockerfile
2021-11-07 22:31:08 +01:00
Stéphane Bidoul
92c1d7da96
Load in-cluster config is KUBECONFIG is not set
2021-11-07 12:47:05 +01:00
Stéphane Bidoul
f012651501
Add test for render_kubefiles
2021-11-07 12:02:36 +01:00
Stéphane Bidoul
bc2740029d
GitHub status now point back to a dedicagted page
...
It automatically redirects with the build homepage,
or show a page with button to start/stop the build.
2021-11-06 20:11:30 +01:00
Stéphane Bidoul
24d9be3b0c
Runboat does not need to know about postgres at all
2021-11-06 15:37:36 +01:00
Stéphane Bidoul
43e0e5f0d1
Remove unused ADMIN_PASSWD env var
2021-11-06 15:07:02 +01:00
Stéphane Bidoul
61ec2f06a0
Better docs leads to better code
2021-11-06 12:17:42 +01:00
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