Hello,
I'd like to leave the helm chart as standard as possible and use the standard jenkins/jenkins:lts image, but I'm running into an issue.
I would like to be able to do something to the effect of using this in my helm values file:
adminPassword: "$(cat /vault/secrets/adminPassword)"
# ps auxww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.1 0.0 1148 4 ? Ss 23:54 0:00 /sbin/tini -- /usr/local/bin/jenkins.sh --argumentsRealm.passwd.admin=$(/bin/cat /vault/secrets/adminpass) --argumentsRealm.roles.admin=admin --httpPort=8080
root 7 130 2.7 4486348 224816 ? Sl 23:54 0:13 java -Duser.home=/var/jenkins_home -Djenkins.model.Jenkins.slaveAgentPort=50000 -jar /usr/share/jenkins/jenkins.war --argumentsRealm.passwd.admin=$(/bin/cat /vault/secrets/adminpass) --argumentsRealm.roles.admin=admin --httpPort=8080
I suppose it's worth nothing that logging in with the password "$(/bin/cat /vault/secrets/adminpass)" does actually work, but this is not what was intended.
I'll keep digging to try to understand where the evaluation is getting lost, but if anyone has ideas and if this can be overcome by some escapes that I'm missing or if there's an all-around better solution, I'd greatly appreciate any pointers.
Take care