I've been trying to update helm values.yaml with a randomized password.
My approach is to add a placeholder
like
global:
my_password: "password-placeholder"
another_service
service_password: "password-placeholder"
I tried to generate password with openssl rand -base64 12
. I'm looking for a string replacement bash command which can loop and create these password.
Tried yq
but it has a bug where it removes some comments in the file.
Tried sed
but not sure how to replace the password-placeholder
with a unique password everytime.
Looking for suggestions.