Skip to content

Match the JSON NetworkPolicy probe line in up.sh - #81

Open
dcmcand wants to merge 1 commit into
mainfrom
fix/up-sh-json-probe
Open

dcmcand wants to merge 1 commit into
mainfrom
fix/up-sh-json-probe

Conversation

@dcmcand

@dcmcand dcmcand commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #80.

up.sh waited for state=Enforced in the NetworkPolicy probe line, but the server logs JSON since 7933ae2, so the line says "state":"Enforced". The wait loop ran out and make up exited 1 on a cluster that was fine. Both case lines now match either form, so text logs keep working too.

Checked against the probe line from a running dev cluster: the old pattern does not match it, the new one does. state=Enforced, "state":"Enforced" match; NotEnforced, Unknown and an empty line still fail the check. bash -n is clean.

The server logs JSON since 7933ae2, so the probe line carries
"state":"Enforced" and up.sh's match on state=Enforced never succeeded:
the wait loop ran out and make up exited 1 with "NetworkPolicy probe did
not report Enforced" on a cluster where the probe had reported it. Match
both forms in the wait loop and the final check.

Fixes #80

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make up fails on the NetworkPolicy check since logs went JSON

1 participant