Generic way for configuring Gitea app.ini #240

Merged
luhahn merged 8 commits from justusbunsi/helm-chart:feature/rework-sensitive-ini-settings into master 2021-12-22 10:44:05 +00:00

8 Commits

Author SHA1 Message Date
justusbunsi
073a56ff86 Stop trying to map mounts as volumes
All checks were successful
continuous-integration/drone/pr Build is passing
2021-12-21 17:08:50 +01:00
justusbunsi
52541836ea Fix indention level for extraVolumeMounts
All checks were successful
continuous-integration/drone/pr Build is passing
2021-12-21 16:54:49 +01:00
justusbunsi
c33e34e956 Fix global settings processing in app.ini
All checks were successful
continuous-integration/drone/pr Build is passing
With #239 the three ini settings on top level got stored inside a
section named identical to the setting itself. With the previous commit
they got not processed at all.

This change ensures they are taken into account on app.ini creation and
stored at the correct ini level.
2021-12-21 12:02:46 +01:00
justusbunsi
9094a0443f Process full Gitea config with bash script
Instead of rendering values into the executed script, a separate secret
resource stores all values.yaml (inline) settings for Gitea so that they
can be loaded like additional config sources are.
2021-12-21 12:02:46 +01:00
justusbunsi
a147201335 Improve log readability 2021-12-21 12:02:46 +01:00
justusbunsi
4b56c32e24 Improve source handling
- Ignore empty lines
- Fix value extraction
- Break script on invalid settings instead just log them
2021-12-21 12:02:46 +01:00
justusbunsi
30e4f75b81 Process additional config sources
Additionally:
  - Add logging to the env-to-ini init container
2021-12-21 12:02:46 +01:00
justusbunsi
33cca725ca Describe additional config sources for app.ini 2021-12-21 12:02:46 +01:00