diff --git a/bin/generate-secrets b/bin/generate-secrets index 778f0b79..40c540c1 100755 --- a/bin/generate-secrets +++ b/bin/generate-secrets @@ -65,7 +65,7 @@ secret="thehyve:$(echo $nginx_auth_password | openssl passwd -apr1 -stdin)" inse comment="username: thehyve, password: $nginx_auth_password" yq -i ".kube_prometheus_stack.nginx_auth line_comment |= strenv(comment)" etc/secrets.yaml # Generate secrets for all remaining fields with value 'secret' or 'secret-secret' (if the component has a min length requirement). -replacements=$(yq e '.. | select(. == "secret" or "secret-secret") | [(path | "."+join("."))] | join(" ")' etc/secrets.yaml); +replacements=$(yq e '.. | select(. == "secret" or . == "secret-secret") | [(path | "."+join("."))] | join(" ")' etc/secrets.yaml); for key in $replacements; do insert_secret $key done \ No newline at end of file