Change env-to-ini prefix and remove custom prefix #464
Reference in New Issue
Block a user
No description provided.
Delete Branch "refs/pull/464/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of the change
Change env-to-ini prefix and remove custom prefix.
GITEA
is the default prefix.Benefits
Compatibility wit v1.20 (
-p
got removed)Possible drawbacks
None
Additional information
See https://github.com/go-gitea/gitea/pull/25799
Tested with Gitea < 1.20 and >= 1.20
From a user pov this change is a breaking one. Chart users are able to add custom envs with the previously used prefix to inject them into the ini building. Those envs must be changed. There is no backwards compatibility. We should explicitly state this. The actual changes look good.
I am not sure about what's this line is used for:
If you want to filter the config options, maybe it should be
grep GITEA__
(double underline) ?@wxiaoguang
Good point. The old value was somewhat unique amongst the envs. This line saves the environment variables that exists prior to the script execution. It is necessary to override provided the ini values in the correct order.
https://gitea.com/gitea/helm-chart#user-defined-environment-variables-in-app-ini
Added a comment to the script, thanks everyone!
I've marked this PR breaking. For release notes.