value file fix

This commit is contained in:
Vaibhav Pathak 2026-02-19 10:09:55 +05:30
parent 6366d7c814
commit e0c81132d4

View File

@ -448,10 +448,12 @@ spec:
# Only insert if we have actual content
if [ -n "$EDITED_CONTENT" ]; then
# Write the values block to a temp file (preserves newlines properly)
# Note: valueFiles: is at 6 spaces in generated YAML (14 in template - 8 base indent)
# So values: must also be at 6 spaces, and content at 8 spaces
VALUES_TMP="/tmp/values_block_$$.txt"
{
echo " values: |"
echo "$EDITED_CONTENT" | sed 's/^/ /'
echo " values: |"
echo "$EDITED_CONTENT" | sed 's/^/ /'
} > "$VALUES_TMP"
# Debug: show temp file content