Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion files/usr/bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ if [[ ! -z "$mounted_secrets" ]] ; then

for key in ${mounted_secrets} ; do
for file in $(ls ${SECRETS_DIR}/${key}/..data); do
echo "$file: $(cat ${SECRETS_DIR}/${key}/..data/${file})" >> /tmp/secrets
lines=$(< ${SECRETS_DIR}/${key}/..data/${file} wc -l)
if [ ${lines} -gt 0 ]; then
echo "$file: |" >> /tmp/secrets
echo "$(cat ${SECRETS_DIR}/${key}/..data/${file} | sed 's/^/ /')" >> /tmp/secrets
else
echo "$file: $(cat ${SECRETS_DIR}/${key}/..data/${file})" >> /tmp/secrets
fi
done
done
extra_args='--extra-vars no_log=true --extra-vars @/tmp/secrets'
Expand Down