Commit graph

44 commits

Author SHA1 Message Date
5d3621f6f8 start introduce namespace 2024-02-27 09:27:22 +01:00
9cb0e50853 use ingress & ns from common 2024-02-26 16:12:01 +01:00
0cf35755f9 simplify naming & introduce dedicated internal 2024-02-26 13:55:33 +01:00
cc97cae0d0 remove parameter for pre build script 2024-02-22 13:22:08 +01:00
2770883473 rename gitea -> forgejo [BRAKING Change] 2024-02-22 13:05:54 +01:00
209f1bd9ca rename gitea -> forgejo [BRAKING Change] 2024-02-22 11:08:26 +01:00
c8e4c9acf7 Do not merge config and auth 2023-04-12 14:44:36 +00:00
99bc14d62c [Skip-CI] Generate API call for commit info 2022-12-09 09:23:01 +01:00
cb06b081ba [Skip-CI] Add test for hashfile-vol
Add resource file for cljs.
Formatting in entrypoint.sh
2022-12-02 12:33:45 +01:00
Clemens
9e18e99d0e [SKIP-CI] Fixed tests 2022-12-02 12:18:08 +01:00
fb5fd905cc [Skip-CI] Update cpu request value 2022-12-01 16:38:03 +01:00
1514a6d822 Implement resource requests and limits
Possibility to set requests and limits for build jobs.
Otherwise a (sensible) default will be used.
2022-11-29 14:05:36 +01:00
Pat Dyn
e682f826aa Add init-container 2022-11-23 10:14:46 +00:00
bom
2e92cff153 Fix website test instrumentation 2022-11-18 12:50:31 +01:00
d5c605a8fb Fix whitespaces 2022-11-16 12:11:17 +01:00
5b2ede6c46 Remove deprecated header 2022-11-16 12:03:27 +01:00
3a417cbbf8 Add svg mime type
Otherwise nginx serves svgs as application/octet-stream.
This might lead to broken image.
2022-11-16 11:57:55 +01:00
70f356a1a9 Execute script in subshell located in folder
Better handling of white spaces in input.
Add test for creation of build jobs without sha256sum input.
2022-11-11 15:24:28 +01:00
2b2ca8dae7 Add optional script execution in build container
The script file must exist in the root of the specified gitea-repo.
You also need to specify (and calculate) a sha256sum output
for that file. This needs to be added as KV pair to
the respective collection in :websites.
2022-11-11 13:18:49 +01:00
287d6d31c5 Add initial build job so websites get build early 2022-11-08 16:23:10 +01:00
ce00fc3058 Remove cert from nginx deployment
* Remove ToDo in HTTP ingress def
2022-11-04 12:01:58 +01:00
911f0d5b27 Refactor app.kubernetes.part-of into resources 2022-11-01 15:11:16 +01:00
8e93644cb5 [WIP] Refactored ingress ns, fix tests
* now ingress-cert
* tests for generate function now get flattened-and-reduced-config
2022-11-01 13:47:24 +01:00
caa8b5c886 [WIP] Solve ToDos
* Hardened flatten-and-reduce-config through sorting of :auth and
  :website vectors
* add issuer kv and volume-size kv only when existing in config
* fixed test in website_test.cljc
* fixed content-vol-creation for nonexistent volume-size kv pair
2022-11-01 12:54:06 +01:00
a7cfb2f49c Update tests 2022-10-21 15:36:35 +02:00
9519e83497 Fix tests 2022-10-21 11:57:44 +02:00
b3044fbc5c Fix test 2022-10-21 11:33:25 +02:00
49dd95f78e WIP Refactoring ingress
Move Cert generation to ingress as well.
Need to specify name for each http, https, cert resource.
Update tests and ingress definitions.
2022-10-14 16:41:25 +02:00
616d61c2a9 [skip-ci] wip 2022-10-14 14:09:40 +02:00
8fc6f329c0 Simplify spec
Refactor uname -> unique-name.
Unit-tests for spec.
2022-10-14 13:41:21 +02:00
a15b7b0d6f Adjusted Tests
Also fixed smaller issues in website.cljc.
Better division of generate-common-*, now these functions
may reside in c4k-common and generate standing ingresses/certs
with only service and fqdn inputs (which need to be set anyways).

Also moved predicates and specs to website.cljc.
2022-10-13 16:39:55 +02:00
d9e22a26ed [Skip-CI] WIP Working config generation
c4k-website now generates multiple configs depending on the number
of list items in :websites and :auth lists.
2022-10-12 15:54:55 +02:00
31f490e286 [Skip-CI] WIP Working Yaml Generation 2022-10-12 13:42:44 +02:00
679530dbc7 Add functionality for multiple fqdns 2022-09-30 17:54:26 +02:00
03d4f4f7ca Remove storage logic 2022-09-30 10:14:10 +02:00
b5614681d9 Fix test.cljs
Turns out, the cljs version creates newlines at the end of a string.
This was not considered in the test and thus resulted in failure.
2022-09-29 13:59:19 +02:00
df3e099fab Update tests 2022-09-28 15:57:09 +02:00
46f0c72c3e [Skip-Ci] Update Docker image, cron job, tests
It seems, timeout sends signals that do not stop the server process.
Set the signal to SIGKILL - which also kills the function.sh process.
Thus moved the last function to entrypoint.sh
2022-09-28 14:32:41 +02:00
bcad22b067 [Skip-Ci] Refactoring 2022-09-28 10:26:50 +02:00
6708fae81c [Skip-CIi] Add tests 2022-09-27 15:45:13 +02:00
a21c2a4957 Updated Test 2022-09-23 10:33:42 +02:00
bca85d1da4 Add tests
Fix configmap generation.
2022-09-21 15:55:42 +02:00
f0a69e7fda WIP nginx config generation
Also make non essential paths generic.
Less need to fiddle in config map strings.
2022-09-21 14:40:34 +02:00
7e006a4780 [skip-ci] Rename folders to c4k-website 2022-09-09 11:19:25 +02:00
Renamed from src/test/cljc/dda/c4k_gitea/website_test.cljc (Browse further)