Test order values by sections
This commit is contained in:
parent
eafef6d665
commit
2dd669be69
@ -51,7 +51,7 @@ TEMP_FILE=$(mktemp)
|
|||||||
cp "$ORIGINAL_FILE" "$TEMP_FILE"
|
cp "$ORIGINAL_FILE" "$TEMP_FILE"
|
||||||
|
|
||||||
# Strip namespace key from existing values if present
|
# 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
|
yq eval '.ingress' "$GENERATED_FILE" | yq -o=json | jq -c '.[]' | while read -r new_entry; do
|
||||||
hostname=$(echo "$new_entry" | jq -r '.hostname')
|
hostname=$(echo "$new_entry" | jq -r '.hostname')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user