Gitea-1.16.0: Unable to find configuration file

I’m trying to upgrade my gitea to v1.16, running the official helm chart v5.0.1.

When updating the image i get this error

==== BEGIN GITEA CONFIGURATION ====
2022/02/01 09:02:51 ...s/setting/setting.go:543:SetCustomPathAndConf() [W] Using 'custom' directory as relative origin for configuration file: '/data/gitea/"/etc/gitea/app.ini"'
2022/02/01 09:02:51 ...s/setting/setting.go:543:SetCustomPathAndConf() [W] Using 'custom' directory as relative origin for configuration file: '/data/gitea/"/etc/gitea/app.ini"'
2022/02/01 09:02:51 ...s/setting/setting.go:583:loadFromConf() [F] Unable to find configuration file: "/data/gitea/\"/etc/gitea/app.ini\"".
	Ensure you are running in the correct environment or set the correct configuration file with -c.

See also #287 - [Gitea 1.16.0] Unable to find configuration file - helm-chart - Gitea: Git with a cup of tea

Looks like Use shadowing script for docker by zeripath · Pull Request #17846 · go-gitea/gitea · GitHub is not respecting GITEA_APP_INI environment

#289 - Explicit pass config file via cli - helm-chart - Gitea: Git with a cup of tea should fix the issue