Skip to content

Commit

Permalink
Fix generate secret command for replacing secrets.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewelinagr committed Dec 13, 2024
1 parent c0c8a57 commit e90ff19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/generate-secrets
Original file line number Diff line number Diff line change
Expand Up @@ -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(".")' etc/secrets.yaml)
for key in $replacements; do
insert_secret $key
done

0 comments on commit e90ff19

Please sign in to comment.