-
Notifications
You must be signed in to change notification settings - Fork 56
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
Mounts puppetserver.extraSecrets into pods #221
base: master
Are you sure you want to change the base?
Conversation
@Xtigyro @ldaneliukas have you had the chance to have a look to this PR? Thanks in advance! |
@cpiment I hadn't because it's a |
Hi @Xtigyro I have opened this as a draft PR because when I generate the manifests the new volumes and volumeMounts generate an extra blank line in the YAML which I'm not able to get rid of. Could you please test it and help me with that blank lline? It has to be something with the carriage returns when including the template, but I cannot find what's wrong. |
I might have some time to have a look towards the end of the week. |
Hi team, Have you had time to check this fix? Do you have any idea how I can get rid of the blank lines every time I call the templates which insert the secrets and secretmounts? Thanks in advance for your help |
Maybe some of the |
Solves #166 and #192
Now
puppetserver.extraSecrets
must be a list of secret volumeMounts specifications like this:That configuration creates two volumes in each pod:
myBigSecret-volume
andmyOtherBigSecret-volume
and three volumeMounts using the configuration specified in eachextraSecrets
items. The secrets referenced inname
must exist in the namespace.In #192 we discussed about a simpler implementation, but doing it like that supposed that we could not use extra configuration for the volumeMounts (e.g.
subPath
).I open this as a draft PR because when I generate the manifests the new volumes an volumeMounts generate an extra blank line which I'm not able to get rid of. Could some of you please test it and help me with that blank lline?
Thanks in advance for your help