Open cpiment opened 3 months ago
@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 Draft
PR. Now I did and it's looking good!
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.
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. @ldaneliukas @davidphay If any of you have some time, in the meantime, and help @cpiment - will be appreciated.
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 {{- end }}
need to be {{- end -}}
?
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