Gitea-HelmChart/templates/gitea
justusbunsi 9059229acb Rewrite init script (#178)
These changes rewrite the init script to be error aware, informative and have a bit more security awareness.

During rewrite several hidden bugs could be identified and fixed, such as:

- LDAP configuration options interpreted by the shell before passed to command
- Finding multiple ldap ids instead of one during lookup when their names are almost identical
e.g. `_my-ldap-auth` and `my-ldap-auth`
- Properly filter auth sources by their types to prevent unintended type converting attempts that fail

In addition to that the script is a bit cleaner. Some commands do not exist anymore and would cause false-positive errors during script execution.

Helps for: #149

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/178
Reviewed-by: luhahn <luhahn@noreply.gitea.io>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: justusbunsi <justusbunsi@noreply.gitea.io>
Co-committed-by: justusbunsi <justusbunsi@noreply.gitea.io>
2021-06-30 04:09:16 +08:00
..
config.yaml Fix regression for unspecified DOMAIN and ROOT_URL (#185) 2021-06-30 03:24:44 +08:00
http-svc.yaml Improve http service and update Readme (#167) 2021-06-08 01:53:01 +08:00
ingress.yaml Support custom Ingress path (#151) 2021-06-25 02:28:45 +08:00
init.yaml Rewrite init script (#178) 2021-06-30 04:09:16 +08:00
servicemonitor.yaml Fixing prometheus monitoring (#157) 2021-06-07 22:28:28 +08:00
ssh-svc.yaml Add loadbalancersourceranges to ssh service (#105) 2021-02-05 04:42:42 +08:00
statefulset.yaml Rewrite init script (#178) 2021-06-30 04:09:16 +08:00