Open anthonysomerset opened 7 months ago
@anthonysomerset Thanks for the bug report!
If you find a way to fix this, please feel free to send our way a PR. This chart is 100% community maintained.
Some initial research around this
i think https://github.com/helm/helm/issues/2622 and https://github.com/helm/helm/issues/8694 are related issues in that we likely need to add configmaps and secrets etc to the pre-install hook but with the right resource policies to prevent deletion prior to spinning up the environment proper
that or the pre install job would need to be handled in an init-container but that sounds far more of a larger change to implement
@anthonysomerset Definitely sounds a bit bigger than initially expected, yeah.
Describe the Bug
when using runAsNonRoot and customentrypoints the helm chart fails to install with error in kubernetes for the preinstall
Expected Behavior
Helm chart should install, preinstall should create the configmap properly if required
Steps to Reproduce
try to install helm chart with values similar to below install will fail after some time from helm
Environment
Additional Context
I am trying to inject a basic autosign conf as i don't want to generically have autosign enabled for everything and i was attempting to come from a "baremetal" environment (without puppetdb)
I am also doing this because i found disabling autosign (false) prevents the initial server certs from being signed as well (probably worth raising a seperate bug somewhere there)
FYI i also note similar error if i try putting netrc value into values and eyaml keys (which is a bad idea anyway so i've fixed the error of my ways there)
it looks almost like the preinstall is too early so the configmap isn't created yet and won't get created unless the preinstall succeeds - in my case i am not sure the configmap is even needed in the preinstall or not but others may need it as the run as nonroot
I am happy to disable runAsNonRoot if the CA certs are persisted but the readme suggests that certs get regenerated so is a little unclear here
my values.yaml - sensitive data redacted