missing examples for additional secret config sources #286
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Hi,
I tried to move the database and mail credentials into a seperate secret. For example the database credentials:
The secret is included via
additionalConfigSources:The
databasesection of theapp.inicontains only values which must not be protected.If i deploy this configuration, I get an
Init:CrashLoopBackOfferror. There is only one example to includeapp.iniconfigurations viagitea-app-ini-plaintext. Unfortunately none with a secret. It would be great if someone here could help me and expand the README for an example with an additionalConfig as secret.It seems that the bug is already known, because I also use an external database.
https://gitea.com/gitea/helm-chart/pulls/279
Hi @volker.raschek. The expected data structure inside a Kubernetes secret and Kubernetes ConfigMap are identical.
Both types are mounted as files into the container. Your secret needs to look like the following:
The key
databasemust match the section key insideapp.iniand represents a file during ini creation. Let me know if this structure works for you. It should. ?I see that the documentation is not as explaining as hoped. Will update the docs according to that requirement.
Hi @justusbunsi,
I adapted my secret. The
databasekey was invalid. I tried to deploy gitea again with the credentials stored as secret. I received an other error from an init-container, that the database setting is invalid:The secret looks like your example above. I don't know why it does not work. Any idea?
Oh. I forgot to change one little but important thing in my snippet. The : need to be =.
Please try this again.
Hi @justusbunsi,
this works. Thanks a lot for your help.
I think this should be documented to avoid issues related to this topic in future.
Volker