Skip to content

Commit

Permalink
Merge pull request #340 from RADAR-base/fix-default-minio-pass
Browse files Browse the repository at this point in the history
Fix generate secret command for replacing secrets.
  • Loading branch information
keyvaann authored Dec 13, 2024
2 parents 4c7f0a4 + 87ca28a commit 15394ca
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("."))] | join(" ")' etc/secrets.yaml);
for key in $replacements; do
insert_secret $key
done

0 comments on commit 15394ca

Please sign in to comment.