Test order values by sections

This commit is contained in:
dvirlabs 2025-06-22 22:30:05 +03:00
parent eafef6d665
commit 2dd669be69

View File

@ -51,7 +51,7 @@ TEMP_FILE=$(mktemp)
cp "$ORIGINAL_FILE" "$TEMP_FILE"
# Strip namespace key from existing values if present
yq eval '.cloudflare.ingress' "$TEMP_FILE" | yq -o=json | jq -c '.[]' > /tmp/existing.json
yq eval -o=json '.cloudflare.ingress' "$TEMP_FILE" > /tmp/existing.json
yq eval '.ingress' "$GENERATED_FILE" | yq -o=json | jq -c '.[]' | while read -r new_entry; do
hostname=$(echo "$new_entry" | jq -r '.hostname')