-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply tpl function for secretKeyRef section of envSecret vars #85
Conversation
@FZambia, hope you can find some time to take a look at this one as well :) |
Thanks! Hate to say this - but looks like there is a possible issue because we already have
helm/helm#10299 has discussion about similar conflicts in other projects. I think ideally would be to have some custom It's also possible to use The only idea for now is introducing some options to enable possibility to use templates like: This is ugly, I understand, but seems to solve your problem without breaking changes. Probably you have some other ideas? |
Completely understand your point. For our case, as workaround I see that to ensure that the service name for Redis persists regardless of Helm chart release name I can leverage
Regarding the second point. Though ecdsa and rsa keys contain public part does it make sense for you to have those options as part of the secret as well? |
Probably helm-charts/charts/centrifugo/values.yaml Line 266 in b748575
|
Yes, it's possible to use
I create a single secret outside of that chart (in other subchart, ExternalSecret -> Secret) where all "sensitive" data is stored, e.g admin token, admin password, api token. The only part missing - ecdsa public key |
Sorry, too many context switches during last days – completely missed that in your original pr you actually added templating to
And simply iterate over both |
I see.. Well, I think adding |
@FZambia should be ready for review |
Many thanks! |
There are some cases when templating on the "values" level is useful. I will describe our cases below.
The first one is when the chart is included as subchart with some other charts, e.g. Redis helm chart. In that case, the redis service URL looks as follows "{{ .Release.Name }}-redis". You would like to get rid of the hardcode in values here.
The second example is when you need to provide additional envSecrets. In our case, we create the secret in a subchart as a result its name depends as well on the release name.
The MR is intended to cover the cases above. Hopefully, it doesn't contradict the current approach.