vfm / syseleven-exporter-chart

A Helm Chart to deploy the greate SysEleven Exporter in Kubernetes.
MIT License
3 stars 3 forks source link

Add possibility to use existing secret for openstack config #11

Closed mwipplinger-ftapi closed 5 months ago

mwipplinger-ftapi commented 1 year ago

To be able to use this chart securely with gitOps tooling the ability to use existing secrets that are created via gitOps and encrypted in the repositories to not expose secret information is crucial. We'd like to introduce this feature to this helm chart. The external Secret config would be optional and should not introduce changes for users of the chart that use the current configuration possibilities

amgonzalezf commented 8 months ago

Hi there,

I also wanted to implement this functionality. I actually downloaded the helm chart and made the changes there, so now I'm using a preexisting secret to provide the credentials. However, I decided that I wanted to colaborate to this project.

The PR is good but in order for the change to work properly, we should also modify the deployment template so the environment variables of the container are grabbed from the existing secret. I tried to push the changes that I'm mentioning but I don't have write permission in the project (or maybe I don't know how to make a push to the repository properly, this is the first time that I contribute in GitHub). In any case, these are the changes that I wanted to propose:

After doing this change, the helm chart worked for me as expected.

mwipplinger-ftapi commented 7 months ago

Hi there, you went with a different approach on how to configure the existing secret via changing the deployment template while I changed the template function that is used by the deployment to figure out the secret name that includes it's credentials. AFAIK both ways will work, it's just a matter of preference I suppose. As your proposed changes are functionally identical to mine I will refrain from refactoring them in. If the maintainers of this Chart ever come back to this repository and don't like the way I implemented that feature they may take your suggestion so thank you for reaching out and commenting on this PR!

amgonzalezf commented 7 months ago

Hi @mwipplinger-ftapi,

Alright, I didn't see in your PR that you modified the template function =) Let's hope that the maintainers take a look eventually at this PR and merge it. In any case, thanks for your contribution