question regarding gitea release usage of valuesFrom secret
jakeschurch opened this issue · 3 comments
hey @angelnu
great job on the cluster - i'm going for a similar setup to your gitea release I see that value for gitea.config.database.PASSWD
is defined in the corresponding secret.yaml -- how are you defining this / doing anything special? Sorry for asking you this - i haven't found similar use in flux docs / other articles / repos
I define the db password as the following, do you define yours as similar? This would be a big help in moving forward with sops setup - ty!
gitea.yaml: |
gitea:
config:
database:
PASSWD: PASSWD
HI @jakeschurch
You can do that with fromvalues https://fluxcd.io/legacy/helm-operator/helmrelease-guide/values/ it is the legacy doc but the option still exits in v2
There is also a way to set global variables with substitutefrom https://fluxcd.io/docs/components/kustomize/kustomization/
Thanks for responding @angelnu - right - that is my setup but the PASSWD is not getting propogated - only the db values defined in spec.values are.
If things look pretty correct I can try to take it up with the K8 at home discord. Thanks again!
thanks again - for flux v2 ive found that using targetPath for single values is the best way to go for me - tysm again!