Open ldaneliukas opened 1 year ago
I just noticed that this is a duplicate of https://github.com/puppetlabs/puppetserver-helm-chart/issues/166 , somehow I managed to miss it when searching existing issues.
Hi @ldaneliukas, I see this has not been yet fixed. Do you mind if I open a PR using your solution? I thought about changing extrasecrets to an array of objects like this:
puppetserver:
extraSecrets:
- name: myBigSecret
path: "/etc/puppetlabs/secretPath"
- name: myOtherSecret
path: "/etc/puppetlabs/otherSecretPath"
But I like your solution more.
Hi @cpiment, I have completely blanked on this proposal. If you could open a PR for this, it'd be great! 🙇
Describe the Bug
https://github.com/puppetlabs/puppetserver-helm-chart/pull/125 introduced
extraSecrets
and these are added as volumes to all pods. The issue is, there they are not actually mounted (i.e. no volumeMounts are created). So whilst the secret is added, it can't really be used for anything within the existing containers.Expected Behavior
The value for
extraSecrets
should require not only aname
but amountPath
too, which would create volume mounts on the specified path in all containers. Changing it to a hash with key being the secret name and value the path could work, for example:Then:
Steps to Reproduce
extraSecrets
in your values.Additional Context
I can create a PR for this.